| Index: third_party/WebKit/LayoutTests/external/wpt/selection/collapseToStartEnd-expected.txt
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/selection/collapseToStartEnd-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/selection/collapseToStartEnd-expected.txt
|
| index a554a4e1863686f6d6a43c38dffdd0813524b8b1..5ab3c0d085536cb8d7a77ccf8d24b5325a966dc3 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/selection/collapseToStartEnd-expected.txt
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/selection/collapseToStartEnd-expected.txt
|
| @@ -17,33 +17,25 @@ CONSOLE ERROR: line 80: The given range isn't in document.
|
| CONSOLE ERROR: line 27: The given range isn't in document.
|
| CONSOLE ERROR: line 80: The given range isn't in document.
|
| This is a testharness.js-based test.
|
| -Found 118 tests; 12 PASS, 106 FAIL, 0 TIMEOUT, 0 NOTRUN.
|
| +Found 118 tests; 58 PASS, 60 FAIL, 0 TIMEOUT, 0 NOTRUN.
|
| PASS Range 0 [] collapseToStart()
|
| PASS Range 0 [] collapseToEnd()
|
| PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0] collapseToStart()
|
| PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0] collapseToEnd()
|
| PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToStart()
|
| -FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToEnd() assert_equals: focusOffset must equal the original end offset expected 1 but got 2
|
| +PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToEnd()
|
| PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8] collapseToStart()
|
| PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8] collapseToEnd()
|
| PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToStart()
|
| -FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToEnd() assert_equals: focusOffset must equal the original end offset expected 9 but got 10
|
| -FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToStart() assert_equals: focusNode must equal the original start node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToEnd() assert_equals: focusNode must equal the original end node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToStart() assert_equals: focusNode must equal the original start node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToEnd() assert_equals: focusNode must equal the original end node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToStart() assert_equals: focusNode must equal the original start node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToEnd() assert_equals: focusNode must equal the original end node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| +PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToEnd()
|
| +PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToStart()
|
| +PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToEnd()
|
| +PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToStart()
|
| +PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToEnd()
|
| +PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToStart()
|
| +PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToEnd()
|
| +PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToStart()
|
| +PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToEnd()
|
| FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| @@ -56,90 +48,58 @@ FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1] collapseT
|
| FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| -FAIL Range 15 [document.documentElement, 0, document.documentElement, 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 15 [document.documentElement, 0, document.documentElement, 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 16 [document.documentElement, 0, document.documentElement, 2] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 16 [document.documentElement, 0, document.documentElement, 2] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Qrstuvwx"
|
| -FAIL Range 17 [document.documentElement, 1, document.documentElement, 2] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 17 [document.documentElement, 1, document.documentElement, 2] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Qrstuvwx"
|
| -FAIL Range 18 [document.head, 1, document.head, 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <head><title>Selection.collapseTo(Start|End)() tests</tit... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 18 [document.head, 1, document.head, 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <head><title>Selection.collapseTo(Start|End)() tests</tit... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 19 [document.body, 0, document.body, 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p><p id... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 19 [document.body, 0, document.body, 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p><p id... but got Text node "Qrstuvwx"
|
| +PASS Range 15 [document.documentElement, 0, document.documentElement, 1] collapseToStart()
|
| +PASS Range 15 [document.documentElement, 0, document.documentElement, 1] collapseToEnd()
|
| +PASS Range 16 [document.documentElement, 0, document.documentElement, 2] collapseToStart()
|
| +PASS Range 16 [document.documentElement, 0, document.documentElement, 2] collapseToEnd()
|
| +PASS Range 17 [document.documentElement, 1, document.documentElement, 2] collapseToStart()
|
| +PASS Range 17 [document.documentElement, 1, document.documentElement, 2] collapseToEnd()
|
| +PASS Range 18 [document.head, 1, document.head, 1] collapseToStart()
|
| +PASS Range 18 [document.head, 1, document.head, 1] collapseToEnd()
|
| +PASS Range 19 [document.body, 0, document.body, 1] collapseToStart()
|
| +PASS Range 19 [document.body, 0, document.body, 1] collapseToEnd()
|
| FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| -FAIL Range 23 [paras[0], 0, paras[0], 0] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 23 [paras[0], 0, paras[0], 0] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 24 [paras[0], 0, paras[0], 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 24 [paras[0], 0, paras[0], 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| +PASS Range 23 [paras[0], 0, paras[0], 0] collapseToStart()
|
| +PASS Range 23 [paras[0], 0, paras[0], 0] collapseToEnd()
|
| +PASS Range 24 [paras[0], 0, paras[0], 1] collapseToStart()
|
| +PASS Range 24 [paras[0], 0, paras[0], 1] collapseToEnd()
|
| FAIL Range 25 [detachedPara1, 0, detachedPara1, 0] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 25 [detachedPara1, 0, detachedPara1, 0] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 26 [detachedPara1, 0, detachedPara1, 1] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 26 [detachedPara1, 0, detachedPara1, 1] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToStart()
|
| -FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToEnd() assert_equals: focusNode must equal the original end node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| +PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToEnd()
|
| PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToStart()
|
| -FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToEnd() assert_equals: focusNode must equal the original end node expected Text node "Ijklmnop
|
| -" but got Text node "Qrstuvwx"
|
| -FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1] collapseToStart() assert_equals: focusOffset must equal the original start offset expected 3 but got 4
|
| -FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx"
|
| -FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7] collapseToEnd() assert_equals: focusOffset must equal the original end offset expected 7 but got 8
|
| -FAIL Range 31 [testDiv, 2, paras[4], 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p><p id="b" s... but got Text node "Qrstuvwx"
|
| -FAIL Range 31 [testDiv, 2, paras[4], 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <p id="e" style="display:none">Ghijklmn</p> but got Text node "Qrstuvwx"
|
| -FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p><p id="b" s... but got Text node "Qrstuvwx"
|
| +PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToEnd()
|
| +PASS Range 29 [paras[0].firstChild, 3, paras[3], 1] collapseToStart()
|
| +PASS Range 29 [paras[0].firstChild, 3, paras[3], 1] collapseToEnd()
|
| +PASS Range 30 [paras[0], 0, paras[0].firstChild, 7] collapseToStart()
|
| +PASS Range 30 [paras[0], 0, paras[0].firstChild, 7] collapseToEnd()
|
| +PASS Range 31 [testDiv, 2, paras[4], 1] collapseToStart()
|
| +PASS Range 31 [testDiv, 2, paras[4], 1] collapseToEnd()
|
| +PASS Range 32 [testDiv, 1, paras[2].firstChild, 5] collapseToStart()
|
| PASS Range 32 [testDiv, 1, paras[2].firstChild, 5] collapseToEnd()
|
| -FAIL Range 33 [document.documentElement, 1, document.body, 0] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 33 [document.documentElement, 1, document.body, 0] collapseToEnd() assert_equals: focusNode must equal the original end node expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p><p id... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| +PASS Range 33 [document.documentElement, 1, document.body, 0] collapseToStart()
|
| +PASS Range 33 [document.documentElement, 1, document.body, 0] collapseToEnd()
|
| FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| -FAIL Range 35 [document, 0, document, 1] collapseToStart() assert_equals: focusNode must equal the original start node expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 35 [document, 0, document, 1] collapseToEnd() assert_equals: focusNode must equal the original end node expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 36 [document, 0, document, 2] collapseToStart() assert_equals: focusNode must equal the original start node expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 36 [document, 0, document, 2] collapseToEnd() assert_equals: focusNode must equal the original end node expected Document node with 2 children but got Text node "Qrstuvwx"
|
| -FAIL Range 37 [document, 1, document, 2] collapseToStart() assert_equals: focusNode must equal the original start node expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 37 [document, 1, document, 2] collapseToEnd() assert_equals: focusNode must equal the original end node expected Document node with 2 children but got Text node "Qrstuvwx"
|
| -FAIL Range 38 [testDiv, 0, comment, 5] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
|
| -</p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
|
| -"
|
| -FAIL Range 38 [testDiv, 0, comment, 5] collapseToEnd() assert_equals: focusNode must equal the original end node expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
|
| +PASS Range 35 [document, 0, document, 1] collapseToStart()
|
| +PASS Range 35 [document, 0, document, 1] collapseToEnd()
|
| +PASS Range 36 [document, 0, document, 2] collapseToStart()
|
| +PASS Range 36 [document, 0, document, 2] collapseToEnd()
|
| +PASS Range 37 [document, 1, document, 2] collapseToStart()
|
| +PASS Range 37 [document, 1, document, 2] collapseToEnd()
|
| +PASS Range 38 [testDiv, 0, comment, 5] collapseToStart()
|
| +PASS Range 38 [testDiv, 0, comment, 5] collapseToEnd()
|
| PASS Range 39 [paras[2].firstChild, 4, comment, 2] collapseToStart()
|
| -FAIL Range 39 [paras[2].firstChild, 4, comment, 2] collapseToEnd() assert_equals: focusNode must equal the original end node expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
|
| -FAIL Range 40 [paras[3], 1, comment, 8] collapseToStart() assert_equals: focusNode must equal the original start node expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Qrstuvwx"
|
| -FAIL Range 40 [paras[3], 1, comment, 8] collapseToEnd() assert_equals: focusNode must equal the original end node expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
|
| +PASS Range 39 [paras[2].firstChild, 4, comment, 2] collapseToEnd()
|
| +PASS Range 40 [paras[3], 1, comment, 8] collapseToStart()
|
| +PASS Range 40 [paras[3], 1, comment, 8] collapseToEnd()
|
| FAIL Range 41 [foreignDoc, 0, foreignDoc, 0] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 41 [foreignDoc, 0, foreignDoc, 0] collapseToEnd() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
| FAIL Range 42 [foreignDoc, 1, foreignComment, 2] collapseToStart() assert_equals: Sanity check: rangeCount must equal 1 after addRange() expected 1 but got 0
|
|
|