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

Unified Diff: LayoutTests/fast/dom/custom/document-register-constructor.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-constructor.html
diff --git a/LayoutTests/fast/dom/custom/document-register-constructor.html b/LayoutTests/fast/dom/custom/document-register-constructor.html
index a725f7fff0e50bf2a5b473bab78908204daaa059..88b7f7257ddfb59bb3c34c486a0bf878b0911743 100644
--- a/LayoutTests/fast/dom/custom/document-register-constructor.html
+++ b/LayoutTests/fast/dom/custom/document-register-constructor.html
@@ -5,14 +5,14 @@
<script>
test(function () {
var proto = Object.create(HTMLElement.prototype);
- var ctor = document.register('x-a', {prototype: proto});
+ var ctor = document.registerElement('x-a', {prototype: proto});
assert_true(ctor instanceof Function, 'constructor must be a function');
assert_equals(typeof ctor, 'function', 'constructor must be a function instance');
}, 'constructor type');
test(function () {
var proto = Object.create(HTMLElement.prototype);
- var ctor = document.register('x-b', {prototype: proto});
+ var ctor = document.registerElement('x-b', {prototype: proto});
// FIXME: These are not specified yet. Update these assertions
// when the name is specified.
@@ -21,7 +21,7 @@ test(function () {
test(function () {
var proto = Object.create(HTMLElement.prototype);
- var ctor = document.register('x-c', {prototype: proto});
+ var ctor = document.registerElement('x-c', {prototype: proto});
assert_own_property(proto, 'constructor', 'document.register must configure the constructor property of the prototype');
assert_equals(proto.constructor, ctor, 'the value of the constructor property must be the constructor function');
@@ -34,7 +34,7 @@ test(function () {
test(function () {
var proto = Object.create(HTMLElement.prototype);
- var ctor = document.register('x-d', {prototype: proto});
+ var ctor = document.registerElement('x-d', {prototype: proto});
assert_own_property(ctor, 'prototype', 'document.register must configure the prototype property of the constructor');
assert_equals(ctor.prototype, proto, 'the value of the prototype property must be the prototype object');

Powered by Google App Engine
This is Rietveld 408576698