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'); |