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

Unified Diff: third_party/WebKit/LayoutTests/resources/idlharness.js

Issue 1493473002: Update testharness.js and friends (and duplicate copies) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/resources/idlharness.js
diff --git a/third_party/WebKit/LayoutTests/resources/idlharness.js b/third_party/WebKit/LayoutTests/resources/idlharness.js
index 8e41703e65845d3a75a610ef8a7f1c5532626d9c..9f324e089ebf72b97aa1b007adaabb846635c5b4 100644
--- a/third_party/WebKit/LayoutTests/resources/idlharness.js
+++ b/third_party/WebKit/LayoutTests/resources/idlharness.js
@@ -1286,15 +1286,10 @@ IdlInterface.prototype.test_object = function(desc)
exception = e;
}
- // TODO: WebIDLParser doesn't currently support named legacycallers, so I'm
- // not sure what those would look like in the AST
- var expected_typeof = this.members.some(function(member)
- {
- return member.legacycaller
- || ("idlType" in member && member.idlType.legacycaller)
- || ("idlType" in member && typeof member.idlType == "object"
- && "idlType" in member.idlType && member.idlType.idlType == "legacycaller");
- }) ? "function" : "object";
+ var expected_typeof =
+ this.members.some(function(member) { return member.legacycaller; })
+ ? "function"
+ : "object";
this.test_primary_interface_of(desc, obj, exception, expected_typeof);
var current_interface = this;
« no previous file with comments | « third_party/WebKit/LayoutTests/resources/WebIDLParser.js ('k') | third_party/WebKit/LayoutTests/resources/testharness.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698