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..c5799b2e413f336fc30dede70d578dd1d92020c8 |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/resources/custom-element-def.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<my-custom id="def-before"></my-custom> |
+<script> |
+(function() { |
+ var proto = Object.create(HTMLElement.prototype); |
+ proto.createdCallback = function () { |
dominicc (has gone to gerrit)
2014/04/18 00:56:25
It's my bad habit to write function () { but I *th
Hajime Morrita
2014/04/18 01:48:33
Done.
|
+ recordElement(this); |
+ }; |
+ |
+ document.registerElement('my-custom', {prototype: proto}); |
+})(); |
+</script> |
+<my-custom id="def-after"></my-custom> |