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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/imports/circular-imports.html

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses tkent's comments. Created 4 years, 4 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/custom-elements/imports/circular-imports.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/imports/circular-imports.html b/third_party/WebKit/LayoutTests/custom-elements/imports/circular-imports.html
index 99097acfffdfba6724626b7ed78809ab1d7b3ead..66dc282e68c75b0a6630cd31c3afdcc3cae5fecf 100644
--- a/third_party/WebKit/LayoutTests/custom-elements/imports/circular-imports.html
+++ b/third_party/WebKit/LayoutTests/custom-elements/imports/circular-imports.html
@@ -3,6 +3,7 @@
<script src="../../resources/testharnessreport.js"></script>
<script>
'use strict';
+
let constructors = [];
</script>
<a-a></a-a>
@@ -10,10 +11,11 @@ let constructors = [];
<link rel="import" href="resources/circular-level1.html">
<script>
'use strict';
+
test(() => {
// At the point of imports, <a-a> and <b-b> are already parsed and will be
// upgraded when the definitions are ready.
assert_array_equals(constructors, ['circular-level2', 'circular-level1'],
'The constructor order should be script execution order of definition.');
-}, 'Custom Elements definitions in circularly-dependent imports should work.');
+}, 'custom element definitions in circularly-dependent imports should work.');
</script>

Powered by Google App Engine
This is Rietveld 408576698