OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="target">This tests that arrow keys navigate through a paragraph as expect
ed when in caret browsing mode, also with shift and ctrl modifiers.</p> | 7 <p id="target">This tests that arrow keys navigate through a paragraph as expect
ed when in caret browsing mode, also with shift and ctrl modifiers.</p> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <script> | 10 <script> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // check left/right arrows + Ctrl/Option + Shift | 46 // check left/right arrows + Ctrl/Option + Shift |
47 eventSender.keyDown("rightArrow", [modifierForWordGranularity, "shiftKey"]); | 47 eventSender.keyDown("rightArrow", [modifierForWordGranularity, "shiftKey"]); |
48 eventSender.keyDown("rightArrow", [modifierForWordGranularity, "shiftKey"]); | 48 eventSender.keyDown("rightArrow", [modifierForWordGranularity, "shiftKey"]); |
49 shouldBe("getSelection().baseOffset", "16"); | 49 shouldBe("getSelection().baseOffset", "16"); |
50 shouldBe("getSelection().extentOffset", "26"); | 50 shouldBe("getSelection().extentOffset", "26"); |
51 eventSender.keyDown("leftArrow", [modifierForWordGranularity]); | 51 eventSender.keyDown("leftArrow", [modifierForWordGranularity]); |
52 shouldBe("getSelection().baseOffset", "22"); | 52 shouldBe("getSelection().baseOffset", "22"); |
53 } | 53 } |
54 | 54 |
55 </script> | 55 </script> |
56 <script src="../../fast/js/resources/js-test-post.js"></script> | |
57 </body> | 56 </body> |
58 </html> | 57 </html> |
OLD | NEW |