DOMException should not have its own toString()
https://bugs.webkit.org/show_bug.cgi?id=174630
Reviewed by Sam Weinig.
LayoutTests/imported/w3c:
Rebaseline existing tests now that more checks are passing.
* web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any-expected.txt:
* web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.worker-expected.txt:
Source/WebCore:
DOMException should not have its own toString() and should use the one from Error.prototype.toString()
instead:
- https://heycam.github.io/webidl/#idl-DOMException
No new tests, rebaselined existing tests.
* dom/DOMCoreException.idl:
LayoutTests:
Rebaseline existing tests as the exception string is now slightly different.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@219663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/dom/dataset-xhtml-expected.txt b/LayoutTests/fast/dom/dataset-xhtml-expected.txt
index 1563af0..c921cfc 100644
--- a/LayoutTests/fast/dom/dataset-xhtml-expected.txt
+++ b/LayoutTests/fast/dom/dataset-xhtml-expected.txt
@@ -22,9 +22,9 @@
PASS testSet('', 'data-') is true
PASS testSet('à', 'data-à') is true
-PASS testSet('-foo', 'dummy') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
-PASS testSet('foo ', 'dummy') threw exception InvalidCharacterError (DOM Exception 5): The string contains invalid characters..
-PASS testSet('foo豈', 'dummy') threw exception InvalidCharacterError (DOM Exception 5): The string contains invalid characters..
+PASS testSet('-foo', 'dummy') threw exception SyntaxError: The string did not match the expected pattern..
+PASS testSet('foo ', 'dummy') threw exception InvalidCharacterError: The string contains invalid characters..
+PASS testSet('foo豈', 'dummy') threw exception InvalidCharacterError: The string contains invalid characters..
PASS testDelete('data-foo', 'foo') is true
PASS testDelete('data-foo-bar', 'fooBar') is true