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

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

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase wip 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/nested-imports.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/imports/nested-imports.html b/third_party/WebKit/LayoutTests/custom-elements/imports/nested-imports.html
new file mode 100644
index 0000000000000000000000000000000000000000..5a525594c29ccc2eb949f9f3a86270e8e74c47fb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/custom-elements/imports/nested-imports.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<link rel="import" href="resources/nested-level1.html">
+<script>
+let constructors = [];
+</script>
+<nested-level1></nested-level1>
+<nested-level2></nested-level2>
+<nested-level3></nested-level3>
+<script>
+test(() => {
+ assert_equals(constructors.length, 3);
+ assert_equals(constructors[0], 'nested-level1');
+ assert_equals(constructors[1], 'nested-level2');
+ assert_equals(constructors[2], 'nested-level3');
+}, 'Custom Element v1 definition in nested imports should work.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698