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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Tests that the CharacterData API arguments are correctly validated. 1 Tests that the CharacterData API arguments are correctly validated.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS text.data is "abcd" 6 PASS text.data is "abcd"
7 PASS text.__proto__.__proto__ is CharacterData.prototype 7 PASS text.__proto__.__proto__ is CharacterData.prototype
8 PASS text.appendData('efg') did not throw exception. 8 PASS text.appendData('efg') did not throw exception.
9 PASS text.data is "abcdefg" 9 PASS text.data is "abcdefg"
10 PASS text.appendData() threw exception TypeError: Not enough arguments. 10 PASS text.appendData() threw exception TypeError: Failed to execute 'appendData' on 'CharacterData': 1 argument required, but only 0 present..
11 PASS text.data is "abcdefg" 11 PASS text.data is "abcdefg"
12 PASS text.insertData(0, 'abcd') did not throw exception. 12 PASS text.insertData(0, 'abcd') did not throw exception.
13 PASS text.data is "abcdefg" 13 PASS text.data is "abcdefg"
14 PASS text.insertData() threw exception TypeError: Not enough arguments. 14 PASS text.insertData() threw exception TypeError: Failed to execute 'insertData' on 'CharacterData': 2 arguments required, but only 0 present..
15 PASS text.data is "abcdefg" 15 PASS text.data is "abcdefg"
16 PASS text.insertData(0) threw exception TypeError: Not enough arguments. 16 PASS text.insertData(0) threw exception TypeError: Failed to execute 'insertData ' on 'CharacterData': 2 arguments required, but only 1 present..
17 PASS text.data is "abcdefg" 17 PASS text.data is "abcdefg"
18 PASS text.insertData(999, 'test') threw exception IndexSizeError: Failed to exec ute 'insertData' on 'CharacterData': The offset 999 is greater than the node's l ength (7).. 18 PASS text.insertData(999, 'test') threw exception IndexSizeError: Failed to exec ute 'insertData' on 'CharacterData': The offset 999 is greater than the node's l ength (7)..
19 PASS text.data is "abcdefg" 19 PASS text.data is "abcdefg"
20 PASS text.insertData(-4294967294, 'test') did not throw exception. 20 PASS text.insertData(-4294967294, 'test') did not throw exception.
21 PASS text.data is "abtestcdefg" 21 PASS text.data is "abtestcdefg"
22 PASS text.deleteData(4, 3) did not throw exception. 22 PASS text.deleteData(4, 3) did not throw exception.
23 PASS text.data is "abcd" 23 PASS text.data is "abcd"
24 PASS text.deleteData() threw exception TypeError: Not enough arguments. 24 PASS text.deleteData() threw exception TypeError: Failed to execute 'deleteData' on 'CharacterData': 2 arguments required, but only 0 present..
25 PASS text.data is "abcd" 25 PASS text.data is "abcd"
26 PASS text.deleteData(0) threw exception TypeError: Not enough arguments. 26 PASS text.deleteData(0) threw exception TypeError: Failed to execute 'deleteData ' on 'CharacterData': 2 arguments required, but only 1 present..
27 PASS text.data is "abcd" 27 PASS text.data is "abcd"
28 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).. 28 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)..
29 PASS text.data is "abcd" 29 PASS text.data is "abcd"
30 PASS text.deleteData(-1, 3) threw exception IndexSizeError: Failed to execute 'd eleteData' on 'CharacterData': The offset 4294967295 is greater than the node's length (4).. 30 PASS text.deleteData(-1, 3) threw exception IndexSizeError: Failed to execute 'd eleteData' on 'CharacterData': The offset 4294967295 is greater than the node's length (4)..
31 PASS text.data is "abcd" 31 PASS text.data is "abcd"
32 PASS text.deleteData(-4294967294, 2) did not throw exception. 32 PASS text.deleteData(-4294967294, 2) did not throw exception.
33 PASS text.data is "ab" 33 PASS text.data is "ab"
34 PASS text.deleteData(1, 999) did not throw exception. 34 PASS text.deleteData(1, 999) did not throw exception.
35 PASS text.data is "a" 35 PASS text.data is "a"
36 PASS text.replaceData(0, 0, 'abcd') did not throw exception. 36 PASS text.replaceData(0, 0, 'abcd') did not throw exception.
37 PASS text.data is "abcdefg" 37 PASS text.data is "abcdefg"
38 PASS text.replaceData() threw exception TypeError: Not enough arguments. 38 PASS text.replaceData() threw exception TypeError: Failed to execute 'replaceDat a' on 'CharacterData': 3 arguments required, but only 0 present..
39 PASS text.data is "abcdefg" 39 PASS text.data is "abcdefg"
40 PASS text.replaceData(0) threw exception TypeError: Not enough arguments. 40 PASS text.replaceData(0) threw exception TypeError: Failed to execute 'replaceDa ta' on 'CharacterData': 3 arguments required, but only 1 present..
41 PASS text.data is "abcdefg" 41 PASS text.data is "abcdefg"
42 PASS text.replaceData(0, 0) threw exception TypeError: Not enough arguments. 42 PASS text.replaceData(0, 0) threw exception TypeError: Failed to execute 'replac eData' on 'CharacterData': 3 arguments required, but only 2 present..
43 PASS text.data is "abcdefg" 43 PASS text.data is "abcdefg"
44 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Failed to execute 'replaceData' on 'CharacterData': The offset 999 is greater than the nod e's length (7).. 44 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Failed to execute 'replaceData' on 'CharacterData': The offset 999 is greater than the nod e's length (7)..
45 PASS text.data is "abcdefg" 45 PASS text.data is "abcdefg"
46 PASS text.replaceData(-1, 3, 'test') threw exception IndexSizeError: Failed to e xecute 'replaceData' on 'CharacterData': The offset 4294967295 is greater than t he node's length (7).. 46 PASS text.replaceData(-1, 3, 'test') threw exception IndexSizeError: Failed to e xecute 'replaceData' on 'CharacterData': The offset 4294967295 is greater than t he node's length (7)..
47 PASS text.data is "abcdefg" 47 PASS text.data is "abcdefg"
48 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception. 48 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception.
49 PASS text.data is "abtestcdefg" 49 PASS text.data is "abtestcdefg"
50 PASS text.replaceData(1, 999, 'aaa') did not throw exception. 50 PASS text.replaceData(1, 999, 'aaa') did not throw exception.
51 PASS text.data is "aaaa" 51 PASS text.data is "aaaa"
52 PASS text.substringData(4, 3) is "efg" 52 PASS text.substringData(4, 3) is "efg"
53 PASS text.substringData() threw exception TypeError: Not enough arguments. 53 PASS text.substringData() threw exception TypeError: Failed to execute 'substrin gData' on 'CharacterData': 2 arguments required, but only 0 present..
54 PASS text.substringData(0) threw exception TypeError: Not enough arguments. 54 PASS text.substringData(0) threw exception TypeError: Failed to execute 'substri ngData' on 'CharacterData': 2 arguments required, but only 1 present..
55 PASS text.substringData(4, 999) is "efg" 55 PASS text.substringData(4, 999) is "efg"
56 PASS text.substringData(4, -1) is "efg" 56 PASS text.substringData(4, -1) is "efg"
57 PASS text.substringData(-1, 2) threw exception IndexSizeError: Failed to execute 'substringData' on 'CharacterData': The offset 4294967295 is greater than the n ode's length (7).. 57 PASS text.substringData(-1, 2) threw exception IndexSizeError: Failed to execute 'substringData' on 'CharacterData': The offset 4294967295 is greater than the n ode's length (7)..
58 PASS text.substringData(-4294967294, 3) is "cde" 58 PASS text.substringData(-4294967294, 3) is "cde"
59 PASS successfullyParsed is true 59 PASS successfullyParsed is true
60 60
61 TEST COMPLETE 61 TEST COMPLETE
62 62
OLDNEW
« 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