Index: third_party/WebKit/LayoutTests/custom-elements/imports/resources/parser-create-element.html |
diff --git a/third_party/WebKit/LayoutTests/custom-elements/imports/resources/parser-create-element.html b/third_party/WebKit/LayoutTests/custom-elements/imports/resources/parser-create-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7afc558746771eb059b4f36338589602f5c908fe |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/custom-elements/imports/resources/parser-create-element.html |
@@ -0,0 +1,15 @@ |
+<a-a id="a"></a-a> |
+<script> |
+'use strict'; |
+test(() => { |
+ assert_equals(constructors.length, 0); |
+ |
+ customElements.define('a-a', class extends HTMLElement { |
+ constructor() { |
+ super(); |
+ constructors.push(this); |
+ } |
+ }); |
+}, 'Custom Element definition should upgrade parsed elements in import.'); |
+</script> |
+<a-a id="b"></a-a> |