Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / legend-access-key.html
blob8fea663135b7501959e6bc6b6a67fe31f4a6bab0
1 <html>
2 <head>
3 <script>
4 function log(message)
6 var item = document.createElement("li");
7 item.appendChild(document.createTextNode(message));
8 document.getElementById("console").appendChild(item);
10 function test()
12 if (window.testRunner) {
13 testRunner.dumpAsText();
15 if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
16 modifiers = ["ctrlKey", "altKey"];
17 else
18 modifiers = "altKey";
19 eventSender.keyDown("f", modifiers);
22 </script>
23 </head>
24 <body onload="test()">
25 <p>This test checks to see if accesskey attributes work on legend elements.</p>
26 <p>If the test passes, you should see one line saying "focused" and the text field should have focus.</p>
27 <hr>
28 <p><fieldset><legend accesskey="f">Information:</legend><input onfocus="log('focused')" type="text"></fieldset><p>
29 <hr>
30 <ol id="console"></ol>
31 </body>
32 </html>