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

Unified Diff: LayoutTests/http/tests/htmlimports/resources/custom-element-def.html

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT. Created 6 years, 8 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: 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>

Powered by Google App Engine
This is Rietveld 408576698