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

Unified Diff: LayoutTests/fast/dom/custom/document-register-namespace.html

Issue 117313008: Update Custom Elements API to new names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for forgotten tests. Created 7 years 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/fast/dom/custom/document-register-namespace.html
diff --git a/LayoutTests/fast/dom/custom/document-register-namespace.html b/LayoutTests/fast/dom/custom/document-register-namespace.html
index ce4de29256ae8965147f19bf2fde8455bf88a083..5ff543337978a235fe67a81d2732dc276703eaa2 100644
--- a/LayoutTests/fast/dom/custom/document-register-namespace.html
+++ b/LayoutTests/fast/dom/custom/document-register-namespace.html
@@ -5,7 +5,7 @@
</head>
<body>
<script>
-description('Using document.register() for extending HTML and non-HTML elements.');
+description('Using document.registerElement() for extending HTML and non-HTML elements.');
function createElementFromHTML(html)
{
@@ -21,8 +21,8 @@ function createElementFromSVG(svg)
return container.firstChild.firstChild;
}
-CustomHTMLElement = document.register('html-foo', { prototype: Object.create(HTMLElement.prototype) });
-CustomSVGElement = document.register('svg-foo', { prototype: Object.create(SVGGElement.prototype), extends: 'g' });
+CustomHTMLElement = document.registerElement('html-foo', { prototype: Object.create(HTMLElement.prototype) });
+CustomSVGElement = document.registerElement('svg-foo', { prototype: Object.create(SVGGElement.prototype), extends: 'g' });
var html1 = new CustomHTMLElement();
shouldBe('html1.namespaceURI', '"http://www.w3.org/1999/xhtml"');

Powered by Google App Engine
This is Rietveld 408576698