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

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

Issue 23717043: Implement Custom Elements 'extends' option. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months 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 4ad68d5e974c3ecae662a9da097c2dacc1a98b5a..3f43a45c4f99f67e50460dce1d877217430cb702 100644
--- a/LayoutTests/fast/dom/custom/document-register-namespace.html
+++ b/LayoutTests/fast/dom/custom/document-register-namespace.html
@@ -60,12 +60,6 @@ shouldBeFalse('notSVG2 instanceof CustomSVGElement');
shouldBeFalse('notSVG2 instanceof HTMLUnknownElement');
shouldBeTrue('notSVG2 instanceof HTMLElement');
shouldBe('Object.getPrototypeOf(notSVG2)', 'HTMLElement.prototype');
-
-// Trying to extend something outside HTML or SVG should throw a NAMESPACE_ERR
-shouldThrow(
- 'document.register("xml-foo", { prototype: Object.create(Element.prototype) })',
- '"NamespaceError: Failed to call \'register\' on \'Document\' for type \'xml-foo\': the prototype does not extend an HTML or SVG element."');
-
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698