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

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

Issue 21675003: CharacterData.substringData() arguments should be mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify link tag 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
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: Not enough arguments.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 PASS text.data is "abcdefg" 43 PASS text.data is "abcdefg"
44 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Index or s ize was negative, or greater than the allowed value.. 44 PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Index or s ize was negative, or greater than the allowed value..
45 PASS text.data is "abcdefg" 45 PASS text.data is "abcdefg"
46 PASS text.replaceData(-1, 3, 'test') threw exception IndexSizeError: Index or si ze was negative, or greater than the allowed value.. 46 PASS text.replaceData(-1, 3, 'test') threw exception IndexSizeError: Index or si ze was negative, or greater than the allowed value..
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.
54 PASS text.substringData(0) threw exception TypeError: Not enough arguments.
53 PASS text.substringData(4, 999) is "efg" 55 PASS text.substringData(4, 999) is "efg"
56 PASS text.substringData(4, -1) is "efg"
54 PASS text.substringData(-1, 2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value.. 57 PASS text.substringData(-1, 2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
55 PASS text.substringData(-4294967294, 3) is "cde" 58 PASS text.substringData(-4294967294, 3) is "cde"
56 PASS successfullyParsed is true 59 PASS successfullyParsed is true
57 60
58 TEST COMPLETE 61 TEST COMPLETE
59 62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698