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

Unified Diff: LayoutTests/fast/dom/custom/document-register-type-extensions.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-type-extensions.html
diff --git a/LayoutTests/fast/dom/custom/document-register-type-extensions.html b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
index 5456f4d46566a88485dae04546575b07bcfbe5bf..4beec3989da12f0a8d14fdd9f2ab355f07fce8d6 100644
--- a/LayoutTests/fast/dom/custom/document-register-type-extensions.html
+++ b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
@@ -7,7 +7,7 @@
<div id="container"></div>
<form id="testForm"></form>
<script>
-description('Testing document.register() type extension behaviours through createElement().');
+description('Testing document.registerElement() type extension behaviours through createElement().');
function isFormControl(element)
{
@@ -25,13 +25,13 @@ if (window.testRunner)
// <- x-foo <- x-baz
//
-fooConstructor = document.register('x-foo', { prototype: Object.create(HTMLElement.prototype) });
-barConstructor = document.register('x-bar', { extends: 'input', prototype: Object.create(HTMLInputElement.prototype) });
-bazConstructor = document.register('x-baz', { prototype: Object.create(fooConstructor.prototype) });
-quxConstructor = document.register('x-qux', { extends: 'input', prototype: Object.create(barConstructor.prototype) });
+fooConstructor = document.registerElement('x-foo', { prototype: Object.create(HTMLElement.prototype) });
+barConstructor = document.registerElement('x-bar', { extends: 'input', prototype: Object.create(HTMLInputElement.prototype) });
+bazConstructor = document.registerElement('x-baz', { prototype: Object.create(fooConstructor.prototype) });
+quxConstructor = document.registerElement('x-qux', { extends: 'input', prototype: Object.create(barConstructor.prototype) });
// Same name, different local name
-shouldThrow('document.register("x-foo", { prototype: Object.create(HTMLDivElement.prototype) })', '"InvalidStateError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-foo\'. A type with that name is already registered."');
+shouldThrow('document.registerElement("x-foo", { prototype: Object.create(HTMLDivElement.prototype) })', '"InvalidStateError: Failed to execute \'registerElement\' on \'Document\': Registration failed for type \'x-foo\'. A type with that name is already registered."');
//
// Generated constructors

Powered by Google App Engine
This is Rietveld 408576698