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

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

Issue 2446483002: Import wpt@c5a14f553cba5f197743b9af605a84eddd8692a2 (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/resources/idlharness.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/resources/idlharness.js b/third_party/WebKit/LayoutTests/imported/wpt/resources/idlharness.js
index 6089646591f2d1364c382da64263f7a153668f34..7d0abf4bfc397e31f4bdabe4d85001601a316c1e 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/resources/idlharness.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/resources/idlharness.js
@@ -447,6 +447,14 @@ IdlArray.prototype.assert_type_is = function(value, type)
return;
}
+ if (type.generic === "Promise") {
+ assert_own_property(value, "then", "Attribute with a Promise type has a then property");
+ // TODO: Ideally, we would check on project fulfillment
+ // that we get the right type
+ // but that would require making the type check async
+ return;
+ }
+
type = type.idlType;
switch(type)

Powered by Google App Engine
This is Rietveld 408576698