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

Unified Diff: LayoutTests/fast/dom/characterdata-api-arguments-expected.txt

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline 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/characterdata-api-arguments-expected.txt
diff --git a/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt b/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt
index d5379fc1949bf6f417c179e86180dd6ec7a8393a..5117dc08f806ff5b16dffa648889b4f44d12f737 100644
--- a/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt
+++ b/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt
@@ -7,13 +7,13 @@ PASS text.data is "abcd"
PASS text.__proto__.__proto__ is CharacterData.prototype
PASS text.appendData('efg') did not throw exception.
PASS text.data is "abcdefg"
-PASS text.appendData() threw exception TypeError: Not enough arguments.
+PASS text.appendData() threw exception TypeError: Failed to execute 'appendData' on 'CharacterData': 1 argument required, but only 0 present..
PASS text.data is "abcdefg"
PASS text.insertData(0, 'abcd') did not throw exception.
PASS text.data is "abcdefg"
-PASS text.insertData() threw exception TypeError: Not enough arguments.
+PASS text.insertData() threw exception TypeError: Failed to execute 'insertData' on 'CharacterData': 2 arguments required, but only 0 present..
PASS text.data is "abcdefg"
-PASS text.insertData(0) threw exception TypeError: Not enough arguments.
+PASS text.insertData(0) threw exception TypeError: Failed to execute 'insertData' on 'CharacterData': 2 arguments required, but only 1 present..
PASS text.data is "abcdefg"
PASS text.insertData(999, 'test') threw exception IndexSizeError: Failed to execute 'insertData' on 'CharacterData': The offset 999 is greater than the node's length (7)..
PASS text.data is "abcdefg"
@@ -21,9 +21,9 @@ PASS text.insertData(-4294967294, 'test') did not throw exception.
PASS text.data is "abtestcdefg"
PASS text.deleteData(4, 3) did not throw exception.
PASS text.data is "abcd"
-PASS text.deleteData() threw exception TypeError: Not enough arguments.
+PASS text.deleteData() threw exception TypeError: Failed to execute 'deleteData' on 'CharacterData': 2 arguments required, but only 0 present..
PASS text.data is "abcd"
-PASS text.deleteData(0) threw exception TypeError: Not enough arguments.
+PASS text.deleteData(0) threw exception TypeError: Failed to execute 'deleteData' on 'CharacterData': 2 arguments required, but only 1 present..
PASS text.data is "abcd"
PASS text.deleteData(999, 3) threw exception IndexSizeError: Failed to execute 'deleteData' on 'CharacterData': The offset 999 is greater than the node's length (4)..
PASS text.data is "abcd"
@@ -35,11 +35,11 @@ PASS text.deleteData(1, 999) did not throw exception.
PASS text.data is "a"
PASS text.replaceData(0, 0, 'abcd') did not throw exception.
PASS text.data is "abcdefg"
-PASS text.replaceData() threw exception TypeError: Not enough arguments.
+PASS text.replaceData() threw exception TypeError: Failed to execute 'replaceData' on 'CharacterData': 3 arguments required, but only 0 present..
PASS text.data is "abcdefg"
-PASS text.replaceData(0) threw exception TypeError: Not enough arguments.
+PASS text.replaceData(0) threw exception TypeError: Failed to execute 'replaceData' on 'CharacterData': 3 arguments required, but only 1 present..
PASS text.data is "abcdefg"
-PASS text.replaceData(0, 0) threw exception TypeError: Not enough arguments.
+PASS text.replaceData(0, 0) threw exception TypeError: Failed to execute 'replaceData' on 'CharacterData': 3 arguments required, but only 2 present..
PASS text.data is "abcdefg"
PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Failed to execute 'replaceData' on 'CharacterData': The offset 999 is greater than the node's length (7)..
PASS text.data is "abcdefg"
@@ -50,8 +50,8 @@ PASS text.data is "abtestcdefg"
PASS text.replaceData(1, 999, 'aaa') did not throw exception.
PASS text.data is "aaaa"
PASS text.substringData(4, 3) is "efg"
-PASS text.substringData() threw exception TypeError: Not enough arguments.
-PASS text.substringData(0) threw exception TypeError: Not enough arguments.
+PASS text.substringData() threw exception TypeError: Failed to execute 'substringData' on 'CharacterData': 2 arguments required, but only 0 present..
+PASS text.substringData(0) threw exception TypeError: Failed to execute 'substringData' on 'CharacterData': 2 arguments required, but only 1 present..
PASS text.substringData(4, 999) is "efg"
PASS text.substringData(4, -1) is "efg"
PASS text.substringData(-1, 2) threw exception IndexSizeError: Failed to execute 'substringData' on 'CharacterData': The offset 4294967295 is greater than the node's length (7)..
« no previous file with comments | « LayoutTests/fast/dom/characterdata-api-arguments.html ('k') | LayoutTests/fast/dom/document-all-tags-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698