Select some text in the input element by setting selectionStart and selectionEnd

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassHTML5 Selection: Set selectionStart and selectionEnd on a text field
Asserts run
Pass
assert_equals(0, 0)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:14:17)
Pass
assert_equals(0, 0)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:15:17)
Pass
assert_equals(null, null, "anchorNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:4:5)
Pass
assert_equals(0, 0, "anchorOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:5:5)
Pass
assert_equals(null, null, "focusNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:6:5)
Pass
assert_equals(0, 0, "focusOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:7:5)
Pass
assert_equals(true, true, "collapsed")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:8:5)
Pass
assert_equals(0, 0, "rangeCount")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:9:5)
Pass
assert_equals("", "")
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:17:17)
Pass
assert_equals(5, 5)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:24:17)
Pass
assert_equals(9, 9)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:25:17)
Pass
assert_equals(null, null, "anchorNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:4:5)
Pass
assert_equals(0, 0, "anchorOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:5:5)
Pass
assert_equals(null, null, "focusNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:6:5)
Pass
assert_equals(0, 0, "focusOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:7:5)
Pass
assert_equals(true, true, "collapsed")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:8:5)
Pass
assert_equals(0, 0, "rangeCount")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:9:5)
Pass
assert_equals("", "")
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:27:17)
Pass
assert_equals(0, 0)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:33:17)
Pass
assert_equals(29, 29)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:34:17)
Pass
assert_equals(Element node <body onload="test(RunTest);">         <input style="WIDT..., Element node <body onload="test(RunTest);">         <input style="WIDT..., "anchorNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:4:5)
Pass
assert_equals(1, 1, "anchorOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:5:5)
Pass
assert_equals(Element node <body onload="test(RunTest);">         <input style="WIDT..., Element node <body onload="test(RunTest);">         <input style="WIDT..., "focusNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:6:5)
Pass
assert_equals(1, 1, "focusOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:7:5)
Pass
assert_equals(true, true, "collapsed")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:8:5)
Pass
assert_equals(1, 1, "rangeCount")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:9:5)
Pass
assert_equals("Some text in an input control", "Some text in an input control")
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:36:17)
Pass
assert_equals(5, 5)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:43:17)
Pass
assert_equals(9, 9)
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:44:17)
Pass
assert_equals(Element node <body onload="test(RunTest);">         <input style="WIDT..., Element node <body onload="test(RunTest);">         <input style="WIDT..., "anchorNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:4:5)
Pass
assert_equals(1, 1, "anchorOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:5:5)
Pass
assert_equals(Element node <body onload="test(RunTest);">         <input style="WIDT..., Element node <body onload="test(RunTest);">         <input style="WIDT..., "focusNode")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:6:5)
Pass
assert_equals(1, 1, "focusOffset")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:7:5)
Pass
assert_equals(true, true, "collapsed")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:8:5)
Pass
assert_equals(1, 1, "rangeCount")
    at checkSelectionAttributes ( /old-tests/submission/Microsoft/selection/common.js:9:5)
Pass
assert_equals("text", "text")
    at Test.RunTest ( /old-tests/submission/Microsoft/selection/selectionStartEnd.htm:46:17)