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

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

Issue 21542002: Make CharacterData::insertData() / deleteData() / replaceData() arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline fast/dom/characterdata-appendData-argument.html Created 7 years, 4 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
(Empty)
1 Tests that the CharacterData API arguments are correctly validated.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS text.data is "abcd"
7 PASS text.__proto__.__proto__ is CharacterData.prototype
8 PASS text.appendData('efg') did not throw exception.
9 PASS text.data is "abcdefg"
10 PASS text.appendData() threw exception TypeError: Not enough arguments.
11 PASS text.data is "abcdefg"
12 PASS text.insertData(0, 'abcd') did not throw exception.
13 PASS text.data is "abcdefg"
14 PASS text.insertData() threw exception TypeError: Not enough arguments.
15 PASS text.data is "abcdefg"
16 PASS text.insertData(0) threw exception TypeError: Not enough arguments.
17 PASS text.data is "abcdefg"
18 PASS text.insertData(999, 'test') threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
19 PASS text.data is "abcdefg"
20 PASS text.insertData(-4294967294, 'test') did not throw exception.
21 PASS text.data is "abtestcdefg"
22 PASS text.deleteData(4, 3) did not throw exception.
23 PASS text.data is "abcd"
24 PASS text.deleteData() threw exception TypeError: Not enough arguments.
25 PASS text.data is "abcd"
26 PASS text.deleteData(0) threw exception TypeError: Not enough arguments.
27 PASS text.data is "abcd"
28 PASS text.deleteData(999, 3) threw exception IndexSizeError: Index or size was n egative, or greater than the allowed value..
29 PASS text.data is "abcd"
30 PASS text.deleteData(-4294967294, 2) did not throw exception.
31 PASS text.data is "ab"
32 PASS text.deleteData(1, 999) did not throw exception.
33 PASS text.data is "a"
34 PASS text.replaceData(0, 0, 'abcd') did not throw exception.
35 PASS text.data is "abcdefg"
36 PASS text.replaceData() threw exception TypeError: Not enough arguments.
37 PASS text.data is "abcdefg"
38 PASS text.replaceData(0) threw exception TypeError: Not enough arguments.
39 PASS text.data is "abcdefg"
40 PASS text.replaceData(0, 0) threw exception TypeError: Not enough arguments.
41 PASS text.data is "abcdefg"
42 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Index or s ize was negative, or greater than the allowed value..
43 PASS text.data is "abcdefg"
44 PASS text.replaceData(-4294967294, 0, 'test') did not throw exception.
45 PASS text.data is "abtestcdefg"
46 PASS text.replaceData(1, 999, 'aaa') did not throw exception.
47 PASS text.data is "aaaa"
48 PASS successfullyParsed is true
49
50 TEST COMPLETE
51
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/characterdata-api-arguments.html ('k') | LayoutTests/fast/dom/characterdata-appendData-argument.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698