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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. 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-basic.html
diff --git a/LayoutTests/fast/dom/custom/document-register-basic.html b/LayoutTests/fast/dom/custom/document-register-basic.html
index 636bbb8f26afcaffe79b26ecb54c97cd8b632010..cf680e500aa53be4e1072e1361656fa19e2c8dbd 100644
--- a/LayoutTests/fast/dom/custom/document-register-basic.html
+++ b/LayoutTests/fast/dom/custom/document-register-basic.html
@@ -24,14 +24,14 @@ shouldBe('fooConstructor.prototype.__proto__', 'HTMLElement.prototype');
shouldBeTrue('fooConstructor.prototype.thisIsPrototype');
// Bad prototype: prototype is already a built-in interface prototype object
-shouldThrow('document.register("x-bad-a", HTMLElement)', '"NotSupportedError: Failed to call \'register\' on \'Document\' for type \'x-bad-a\': prototype is already in-use as an interface prototype object."');
+shouldThrow('document.register("x-bad-a", HTMLElement)', '"NotSupportedError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-bad-a\'. The prototype is already in-use as an interface prototype object."');
// Bad prototype: prototype is already a Custom Element interface prototype object
-shouldThrow('document.register("x-bad-b", fooConstructor)', '"NotSupportedError: Failed to call \'register\' on \'Document\' for type \'x-bad-b\': prototype is already in-use as an interface prototype object."');
+shouldThrow('document.register("x-bad-b", fooConstructor)', '"NotSupportedError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-bad-b\'. The prototype is already in-use as an interface prototype object."');
// Bad prototype: 'constructor' is not configurable
var proto = Object.create(HTMLElement.prototype, {
constructor: {configurable: false, writable: true}
});
-shouldThrow('document.register("x-bad-c", { prototype: proto })', '"NotSupportedError: Failed to call \'register\' on \'Document\' for type \'x-bad-c\': prototype constructor property is not configurable."');
+shouldThrow('document.register("x-bad-c", { prototype: proto })', '"NotSupportedError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-bad-c\'. Prototype constructor property is not configurable."');
// Call as function
shouldThrow('fooConstructor()', '"TypeError: DOM object constructor cannot be called as a function."')

Powered by Google App Engine
This is Rietveld 408576698