Integrate media query evaluation into HTML5 event loop
[WebKit-https.git] / LayoutTests / fast / events / multiline-link-arrow-navigation.html
1 <html><head>
2 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
3
4 <script>
5 if (window.testRunner) {
6     testRunner.dumpAsText();
7 }
8
9 function runTest()
10 {
11     var para = document.getElementById("para");
12     window.getSelection().setPosition(para.childNodes.item(1).childNodes.item(0), 15);
13     eventSender.keyDown("rightArrow");
14     eventSender.keyDown("rightArrow");
15
16     document.getElementById("result").innerText = getSelection().baseOffset == 17 ? "PASS" : "FAIL";
17 }
18 </script>
19
20 <title>Test</title>
21 </head><body onLoad="runTest();">
22 <p id="para" style="-webkit-user-modify: read-write; width: 250px; height: 100px; border: 1px solid blue;">This is a test of <a href="https://bug-25676-attachments.webkit.org/foo.html">links which span multiple lines</a> for various and sundry reasons.</p>
23
24 <p id="result"></p>
25 </body></html>