[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / attempt-select-all-with-wrong-modifier.html
1 <html><head>
2 <script>
3 function test()
4 {
5     if (!window.eventSender)
6         return;
7
8     var onMacPlatform = false;
9     if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
10         onMacPlatform = true;
11
12     if (window.layoutTestController) {
13         layoutTestController.dumpAsText();
14     }
15
16     document.body.focus();
17
18     if (onMacPlatform)
19         eventSender.keyDown('a', ["ctrlKey"]);
20     else
21         eventSender.keyDown('a', ["metaKey"]);
22
23     document.getElementById("console").innerHTML = getSelection().baseNode ? "FAIL" : "PASS";
24 }
25
26 </script>
27 </head>
28 <body onload="test();">
29 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34615">bug 34615</a>. Trying to do a keyboard "select all" using the wrong modifier (e.g. Control on the Mac) should not do anything.
30 <div id="console">
31 NOT DONE YET
32 </div>
33 </body>
34 </html>