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> |