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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/addRange-failures-expected.txt

Issue 2709443002: Selection API: addRange() should be ignored if there is an existing Range. (Closed)
Patch Set: . Created 3 years, 10 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
1 CONSOLE ERROR: line 21: Discontiguous selection is not supported.
2 CONSOLE ERROR: line 29: The given range isn't in document. 1 CONSOLE ERROR: line 29: The given range isn't in document.
3 CONSOLE ERROR: line 51: The given range and the current selection belong to two different document fragments.
4 Test error handling of Selection.addRange(). 2 Test error handling of Selection.addRange().
5 3
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
7 5
8 6
9 Running: testNull 7 Running: testNull
10 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR ange' on 'Selection': parameter 1 is not of type 'Range'.. 8 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR ange' on 'Selection': parameter 1 is not of type 'Range'..
11 PASS selection.rangeCount is 1 9 PASS selection.rangeCount is 1
12 PASS selection.getRangeAt(0).startContainer === document.body is true 10 PASS selection.getRangeAt(0).startContainer === document.body is true
13 PASS selection.getRangeAt(0).startOffset is 0 11 PASS selection.getRangeAt(0).startOffset is 0
(...skipping 20 matching lines...) Expand all
34 Running: testOtherDocumentFragments 32 Running: testOtherDocumentFragments
35 PASS selection.rangeCount is 1 33 PASS selection.rangeCount is 1
36 PASS selection.getRangeAt(0).startContainer === document.body is true 34 PASS selection.getRangeAt(0).startContainer === document.body is true
37 PASS selection.getRangeAt(0).startOffset is 0 35 PASS selection.getRangeAt(0).startOffset is 0
38 PASS selection.getRangeAt(0).endContainer === document.body is true 36 PASS selection.getRangeAt(0).endContainer === document.body is true
39 PASS selection.getRangeAt(0).endOffset is 0 37 PASS selection.getRangeAt(0).endOffset is 0
40 PASS successfullyParsed is true 38 PASS successfullyParsed is true
41 39
42 TEST COMPLETE 40 TEST COMPLETE
43 41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698