blob: a845101749bf798c26b1e0dfb4adb8eac12ea619 [file] [log] [blame]
Tests for selectionDirection
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
input on Mac
PASS selectionDirection was "none" after focusing and setting selection by setSelectionRange(1, 2)
PASS selectionDirection was "none" after focusing on another element
PASS selectionDirection was "none" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2, "forward")
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after setting selection by setSelectionRange(1, 2, "backward") without focus
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "none" after setting selection by selectionDirection = "none" without focus
PASS selectionDirection was "none" after focusing on another element
PASS selectionDirection was "none" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by selectionDirection = "forward" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after focusing and setting selection by selectionDirection = "backward"
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after extending selection forward by character
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after extending selection backward by character
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
textarea on Mac
PASS selectionDirection was "none" after focusing and setting selection by setSelectionRange(1, 2)
PASS selectionDirection was "none" after focusing on another element
PASS selectionDirection was "none" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2, "forward")
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after setting selection by setSelectionRange(1, 2, "backward") without focus
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "none" after setting selection by selectionDirection = "none" without focus
PASS selectionDirection was "none" after focusing on another element
PASS selectionDirection was "none" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by selectionDirection = "forward" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after focusing and setting selection by selectionDirection = "backward"
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after extending selection forward by character
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after extending selection backward by character
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
input on Windows
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2)
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2, "forward")
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after setting selection by setSelectionRange(1, 2, "backward") without focus
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after setting selection by selectionDirection = "none" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by selectionDirection = "forward" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after focusing and setting selection by selectionDirection = "backward"
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after extending selection forward by character
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after extending selection backward by character
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
textarea on Windows
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2)
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2, "forward")
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after setting selection by setSelectionRange(1, 2, "backward") without focus
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after setting selection by selectionDirection = "none" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by selectionDirection = "forward" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after focusing and setting selection by selectionDirection = "backward"
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after extending selection forward by character
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after extending selection backward by character
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
input on Unix
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2)
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2, "forward")
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after setting selection by setSelectionRange(1, 2, "backward") without focus
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after setting selection by selectionDirection = "none" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by selectionDirection = "forward" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after focusing and setting selection by selectionDirection = "backward"
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after extending selection forward by character
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after extending selection backward by character
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
textarea on Unix
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2)
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by setSelectionRange(1, 2, "forward")
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after setting selection by setSelectionRange(1, 2, "backward") without focus
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after setting selection by selectionDirection = "none" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "forward" after focusing and setting selection by selectionDirection = "forward" without focus
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after focusing and setting selection by selectionDirection = "backward"
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS selectionDirection was "forward" after extending selection forward by character
PASS selectionDirection was "forward" after focusing on another element
PASS selectionDirection was "forward" after hiding the element
PASS selectionDirection was "backward" after extending selection backward by character
PASS selectionDirection was "backward" after focusing on another element
PASS selectionDirection was "backward" after hiding the element
PASS successfullyParsed is true
TEST COMPLETE