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

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

Issue 2269493002: Add custom elements in imports ordering tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Grammer fix 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..436df90639494692e0ade24607e8f44da019b5f1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/custom-elements/imports/nested-imports.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+'use strict';
+let constructors = [];
+</script>
+<a-a></a-a>
+<b-b></b-b>
+<c-c></c-c>
+<link rel="import" href="resources/nested-level1.html">
+<script>
+'use strict';
+test(() => {
+ let types = constructors.map(e => e.type);
+ assert_array_equals(types, ['nested-level3', 'nested-level2', 'nested-level1'],
+ 'The constructor order should be script execution order of definition.');
+}, 'Custom Elements definition in nested imports should work.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698