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

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: Fixed the build breakage 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..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>

Powered by Google App Engine
This is Rietveld 408576698