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

Side by Side Diff: LayoutTests/fast/dom/Range/deleteData-replaceData-count-overflow-expected.txt

Issue 229793004: Add CharacterData.deleteData()/replaceData() overflow handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
OLDNEW
(Empty)
1 Test deleteData() + replaceData() overflow handling.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS textNode = new Text('chopped off and then some'); textNode is non-null.
7 PASS textNode.deleteData(11, 0xfffffff7); textNode.data is "chopped off"
8 PASS range.endOffset is 11
9 PASS textNode = new Text('hello world'); textNode is non-null.
10 PASS textNode.replaceData(6, 0xfffffffe, 'bob'); textNode.data is "hello bob"
11 PASS range.endOffset is 6
12 PASS textNode = new Text('hello world'); textNode is non-null.
13 PASS textNode.replaceData(6, -1, 'bob'); textNode.data is "hello bob"
14 PASS textNode = new Text('hello world'); textNode is non-null.
15 PASS textNode.replaceData(6, -2, 'bob'); textNode.data is "hello bob"
16 PASS successfullyParsed is true
17
18 TEST COMPLETE
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698