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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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-basic-expected.txt
diff --git a/LayoutTests/fast/dom/custom/document-register-basic-expected.txt b/LayoutTests/fast/dom/custom/document-register-basic-expected.txt
index 1c4922f3007dc6d4915de5beec785d942882bd96..d813d2ab26bde3a526826ee5d8640706539c28fb 100644
--- a/LayoutTests/fast/dom/custom/document-register-basic-expected.txt
+++ b/LayoutTests/fast/dom/custom/document-register-basic-expected.txt
@@ -3,17 +3,17 @@ Testing document.register() basic behaviors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS document.register('foo', createRegisterParamters()) threw exception Error: InvalidCharacterError: DOM Exception 5.
-PASS document.register('xfoo', createRegisterParamters()) threw exception Error: InvalidCharacterError: DOM Exception 5.
-PASS document.register('missing-glyph', createRegisterParamters()) threw exception Error: InvalidCharacterError: DOM Exception 5.
+PASS document.register('foo', createRegisterParamters()) threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name..
+PASS document.register('xfoo', createRegisterParamters()) threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name..
+PASS document.register('missing-glyph', createRegisterParamters()) threw exception InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name..
PASS typeof fooConstructor is 'function'
PASS fooConstructor.prototype.__proto__ is HTMLElement.prototype
PASS fooConstructor.prototype.thisIsPrototype is true
-PASS document.register('x-foo', createRegisterParamters()) threw exception Error: InvalidStateError: DOM Exception 11.
-PASS document.register('X-FOO', createRegisterParamters()) threw exception Error: InvalidStateError: DOM Exception 11.
-PASS document.register('x-bad-a', { prototype: HTMLElement.prototype }) threw exception Error: InvalidStateError: DOM Exception 11.
-PASS document.register('x-bad-b', { prototype: {} }) threw exception Error: InvalidStateError: DOM Exception 11.
-PASS document.register('x-bad-c', { prototype: Object.create(Document.prototype) }) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS document.register('x-foo', createRegisterParamters()) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS document.register('X-FOO', createRegisterParamters()) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS document.register('x-bad-a', { prototype: HTMLElement.prototype }) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS document.register('x-bad-b', { prototype: {} }) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS document.register('x-bad-c', { prototype: Object.create(Document.prototype) }) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
PASS fooConstructor() threw exception TypeError: DOM object constructor cannot be called as a function..
PASS createdFoo.__proto__ is fooConstructor.prototype
PASS createdFoo.constructor is fooConstructor
« no previous file with comments | « LayoutTests/fast/dom/custom/document-register-basic.html ('k') | LayoutTests/fast/dom/custom/document-register-namespace.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698