Index: LayoutTests/http/tests/htmlimports/resources/custom-element-def.html |
diff --git a/LayoutTests/http/tests/htmlimports/resources/custom-element-def.html b/LayoutTests/http/tests/htmlimports/resources/custom-element-def.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f72f65f57d271137803d1ae01e996e799349984d |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/resources/custom-element-def.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<my-custom id="def-before"></my-custom> |
+<script> |
+(function() |
+{ |
+ var proto = Object.create(HTMLElement.prototype); |
+ proto.createdCallback = function () |
+ { |
+ recordElement(this); |
+ }; |
+ |
+ document.registerElement('my-custom', {prototype: proto}); |
+})(); |
+</script> |
+<my-custom id="def-after"></my-custom> |