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 827d792878ffd62864716c7a2016a725e12dfa26..017c9afb3af96c98a02f64cbfbc91a849911b537 100644 |
--- a/LayoutTests/fast/dom/custom/document-register-type-extensions.html |
+++ b/LayoutTests/fast/dom/custom/document-register-type-extensions.html |
@@ -26,9 +26,9 @@ if (window.testRunner) |
// |
fooConstructor = document.register('x-foo', { prototype: Object.create(HTMLElement.prototype) }); |
-barConstructor = document.register('x-bar', { prototype: Object.create(HTMLInputElement.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', { prototype: Object.create(barConstructor.prototype) }); |
+quxConstructor = document.register('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 call \'register\' on \'Document\' for type \'x-foo\': a type with that name is already registered."'); |