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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/selection/extend-40-expected.txt

Issue 2693813002: Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. (Closed)
Patch Set: adjust 2 more tests 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 944: The given range isn't in document. 1 CONSOLE ERROR: line 944: The given range isn't in document.
2 CONSOLE ERROR: line 944: The given range isn't in document. 2 CONSOLE ERROR: line 944: The given range isn't in document.
3 CONSOLE ERROR: line 944: The given range isn't in document. 3 CONSOLE ERROR: line 944: The given range isn't in document.
4 CONSOLE ERROR: line 944: The given range isn't in document. 4 CONSOLE ERROR: line 944: The given range isn't in document.
5 CONSOLE ERROR: line 944: The given range isn't in document. 5 CONSOLE ERROR: line 944: The given range isn't in document.
6 CONSOLE ERROR: line 944: The given range isn't in document. 6 CONSOLE ERROR: line 944: The given range isn't in document.
7 CONSOLE ERROR: line 944: The given range isn't in document. 7 CONSOLE ERROR: line 944: The given range isn't in document.
8 CONSOLE ERROR: line 944: The given range isn't in document. 8 CONSOLE ERROR: line 944: The given range isn't in document.
9 CONSOLE ERROR: line 944: The given range isn't in document. 9 CONSOLE ERROR: line 944: The given range isn't in document.
10 CONSOLE ERROR: line 944: The given range isn't in document. 10 CONSOLE ERROR: line 944: The given range isn't in document.
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 78 [det achedForeignComment, 4] assert_equals: anchorNode must be the node passed to ext end() if it has a different root from the original range expected Comment node < !--אריה יהודה--> but got Text node "Qrstuvwx" 534 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 78 [det achedForeignComment, 4] assert_equals: anchorNode must be the node passed to ext end() if it has a different root from the original range expected Comment node < !--אריה יהודה--> but got Text node "Qrstuvwx"
535 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 78 [de tachedForeignComment, 4] assert_equals: Sanity check: startContainer must be cor rect expected Element node <p id="d" style="display:none">Yzabcdef</p> but got T ext node "Qrstuvwx" 535 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 78 [de tachedForeignComment, 4] assert_equals: Sanity check: startContainer must be cor rect expected Element node <p id="d" style="display:none">Yzabcdef</p> but got T ext node "Qrstuvwx"
536 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 79 [det achedXmlComment, 2] assert_equals: anchorNode must be the node passed to extend( ) if it has a different root from the original range expected Comment node <!--ב ן חיים אליעזר--> but got Text node "Qrstuvwx" 536 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 79 [det achedXmlComment, 2] assert_equals: anchorNode must be the node passed to extend( ) if it has a different root from the original range expected Comment node <!--ב ן חיים אליעזר--> but got Text node "Qrstuvwx"
537 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 79 [de tachedXmlComment, 2] assert_equals: Sanity check: startContainer must be correct expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx" 537 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 79 [de tachedXmlComment, 2] assert_equals: Sanity check: startContainer must be correct expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx"
538 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 80 [doc frag, 0] assert_equals: anchorNode must be the node passed to extend() if it has a different root from the original range expected DocumentFragment node with 0 children but got Text node "Qrstuvwx" 538 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 80 [doc frag, 0] assert_equals: anchorNode must be the node passed to extend() if it has a different root from the original range expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
539 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 80 [do cfrag, 0] assert_equals: Sanity check: startContainer must be correct expected E lement node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstu vwx" 539 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 80 [do cfrag, 0] assert_equals: Sanity check: startContainer must be correct expected E lement node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstu vwx"
540 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 81 [for eignDocfrag, 0] assert_equals: anchorNode must be the node passed to extend() if it has a different root from the original range expected DocumentFragment node with 0 children but got Text node "Qrstuvwx" 540 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 81 [for eignDocfrag, 0] assert_equals: anchorNode must be the node passed to extend() if it has a different root from the original range expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
541 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 81 [fo reignDocfrag, 0] assert_equals: Sanity check: startContainer must be correct exp ected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx" 541 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 81 [fo reignDocfrag, 0] assert_equals: Sanity check: startContainer must be correct exp ected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx"
542 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 82 [xml Docfrag, 0] assert_equals: anchorNode must be the node passed to extend() if it has a different root from the original range expected DocumentFragment node with 0 children but got Text node "Qrstuvwx" 542 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 82 [xml Docfrag, 0] assert_equals: anchorNode must be the node passed to extend() if it has a different root from the original range expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
543 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 82 [xm lDocfrag, 0] assert_equals: Sanity check: startContainer must be correct expecte d Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qr stuvwx" 543 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 82 [xm lDocfrag, 0] assert_equals: Sanity check: startContainer must be correct expecte d Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qr stuvwx"
544 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 83 [doc type, 0] assert_throws: extend() to a doctype must throw InvalidNodeTypeError fu nction "function () { 544 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 83 [doc type, 0]
545 selection.extend(node, offset);
546 }" did not throw
547 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 83 [do ctype, 0] assert_equals: Sanity check: startContainer must be correct expected E lement node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstu vwx" 545 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 83 [do ctype, 0] assert_equals: Sanity check: startContainer must be correct expected E lement node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstu vwx"
548 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 84 [doc type, -17] assert_throws: extend() to a doctype must throw InvalidNodeTypeError function "function () { 546 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 84 [doc type, -17] assert_throws: extend() to a doctype must throw InvalidNodeTypeError function "function () {
549 selection.extend(node, offset); 547 selection.extend(node, offset);
550 }" threw object "IndexSizeError: Failed to execute 'extend' on 'Selectio n': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_ERR : property "code" is equal to 1, expected 24 548 }" threw object "IndexSizeError: Failed to execute 'extend' on 'Selectio n': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_ERR : property "code" is equal to 1, expected 24
551 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 84 [do ctype, -17] assert_equals: Sanity check: startContainer must be correct expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrs tuvwx" 549 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 84 [do ctype, -17] assert_equals: Sanity check: startContainer must be correct expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrs tuvwx"
552 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 85 [doc type, 1] assert_throws: extend() to a doctype must throw InvalidNodeTypeError fu nction "function () { 550 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 85 [doc type, 1]
553 selection.extend(node, offset);
554 }" threw object "IndexSizeError: Failed to execute 'extend' on 'Selectio n': 1 is larger than the given node's length." that is not a DOMException INVALI D_NODE_TYPE_ERR: property "code" is equal to 1, expected 24
555 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 85 [do ctype, 1] assert_equals: Sanity check: startContainer must be correct expected E lement node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstu vwx" 551 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 85 [do ctype, 1] assert_equals: Sanity check: startContainer must be correct expected E lement node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstu vwx"
556 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 86 [for eignDoctype, 0] assert_throws: extend() to a doctype must throw InvalidNodeTypeE rror function "function () { 552 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 86 [for eignDoctype, 0]
557 selection.extend(node, offset);
558 }" did not throw
559 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 86 [fo reignDoctype, 0] assert_equals: Sanity check: startContainer must be correct exp ected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx" 553 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 86 [fo reignDoctype, 0] assert_equals: Sanity check: startContainer must be correct exp ected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx"
560 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 87 [xml Doctype, 0] assert_throws: extend() to a doctype must throw InvalidNodeTypeError function "function () { 554 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 87 [xml Doctype, 0]
561 selection.extend(node, offset);
562 }" did not throw
563 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 87 [xm lDoctype, 0] assert_equals: Sanity check: startContainer must be correct expecte d Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qr stuvwx" 555 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 87 [xm lDoctype, 0] assert_equals: Sanity check: startContainer must be correct expecte d Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qr stuvwx"
564 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 0 [paras[0] .firstChild, -1] assert_equals: Sanity check: rangeCount must be correct expecte d 1 but got 0 556 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 0 [paras[0] .firstChild, -1] assert_equals: Sanity check: rangeCount must be correct expecte d 1 but got 0
565 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 1 [paras[0] .firstChild, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 557 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 1 [paras[0] .firstChild, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
566 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 2 [paras[0] .firstChild, 1] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 558 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 2 [paras[0] .firstChild, 1] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
567 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 3 [paras[0] .firstChild, 2] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 559 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 3 [paras[0] .firstChild, 2] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
568 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 4 [paras[0] .firstChild, 8] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 560 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 4 [paras[0] .firstChild, 8] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
569 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 5 [paras[0] .firstChild, 9] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 561 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 5 [paras[0] .firstChild, 9] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
570 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 6 [paras[0] .firstChild, 10] assert_equals: Sanity check: rangeCount must be correct expecte d 1 but got 0 562 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 6 [paras[0] .firstChild, 10] assert_equals: Sanity check: rangeCount must be correct expecte d 1 but got 0
571 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 7 [paras[0] .firstChild, 65535] assert_equals: Sanity check: rangeCount must be correct expe cted 1 but got 0 563 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 7 [paras[0] .firstChild, 65535] assert_equals: Sanity check: rangeCount must be correct expe cted 1 but got 0
572 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 8 [paras[1] .firstChild, -1] assert_equals: Sanity check: rangeCount must be correct expecte d 1 but got 0 564 FAIL extend() with range 41 [foreignDoc, 0, foreignDoc, 0] and point 8 [paras[1] .firstChild, -1] assert_equals: Sanity check: rangeCount must be correct expecte d 1 but got 0
(...skipping 2359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 80 [docfrag , 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 2924 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 80 [docfrag , 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
2933 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 81 [foreign Docfrag, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 b ut got 0 2925 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 81 [foreign Docfrag, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 b ut got 0
2934 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 82 [xmlDocf rag, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but g ot 0 2926 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 82 [xmlDocf rag, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but g ot 0
2935 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 83 [doctype , 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 2927 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 83 [doctype , 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
2936 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 84 [doctype , -17] assert_equals: Sanity check: rangeCount must be correct expected 1 but go t 0 2928 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 84 [doctype , -17] assert_equals: Sanity check: rangeCount must be correct expected 1 but go t 0
2937 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 85 [doctype , 1] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0 2929 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 85 [doctype , 1] assert_equals: Sanity check: rangeCount must be correct expected 1 but got 0
2938 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 86 [foreign Doctype, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 b ut got 0 2930 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 86 [foreign Doctype, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 b ut got 0
2939 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 87 [xmlDoct ype, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but g ot 0 2931 FAIL extend() with range 58 [xmlDocfrag, 0, xmlDocfrag, 0] and point 87 [xmlDoct ype, 0] assert_equals: Sanity check: rangeCount must be correct expected 1 but g ot 0
2940 Harness: the test ran to completion. 2932 Harness: the test ran to completion.
2941 2933
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698