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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/imports/parser-craete-element-in-imports.html

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve most 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/parser-craete-element-in-imports.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/imports/parser-craete-element-in-imports.html b/third_party/WebKit/LayoutTests/custom-elements/imports/parser-craete-element-in-imports.html
new file mode 100644
index 0000000000000000000000000000000000000000..5aae508d2b67acc26a1e4484b2852190c1fde981
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/custom-elements/imports/parser-craete-element-in-imports.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+'use strict';
+let constructors = [];
+</script>
+<link rel="import" href="resources/parser-create-element.html">
+<a-a id="c"></a-a>
+<script>
+'use strict';
+test(() => {
+ let ids = constructors.map(e => e.id);
+ // The order of 'a', 'b', and 'c' is non-deterministic.
+ ids.sort();
+ assert_array_equals(ids, ['a', 'b', 'c']);
+}, 'Parser should customize and synchronously call the constructor.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698