Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/resources/interfaces.js

Issue 2897083002: [credentialsmanager] Remove redundant tests (Closed)
Patch Set: Remove redundant assertions Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 function verify_interface(name, instance, attributes) {
2 assert_true(name in self,
3 name + ' should be an defined type');
4 if (instance) {
5 assert_true(instance instanceof self[name],
6 instance + ' should be an instance of ' + name);
7 Object.keys(attributes || {}).forEach(function(attribute) {
8 var type = attributes[attribute];
9 assert_true(attribute in instance,
10 attribute + ' should be an attribute of ' + name);
11 assert_equals(typeof instance[attribute], type,
12 attribute + ' should be of type ' + type);
13 });
14 }
15 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-basics.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698