08b3468f89d061663202b790eca9f1b17e59f439
[framework/web/webkit-efl.git] / LayoutTests / fast / forms / autofocus-keygen.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../js/resources/js-test-pre.js"></script>
5 <script>
6 window.jsTestIsAsync = true;
7
8 function onLoad() {
9     shouldBe('document.activeElement', 'document.querySelector("keygen")');
10     shouldBe('document.activeElement.autofocus', 'true');
11     finishJSTest();
12 }
13
14 successfullyParsed = true;
15 </script>
16 </head>
17 <body onload="onLoad();">
18 <keygen autofocus>
19 <pre id="console">
20 This tests whether the keygen element supports the autofocus attribute.
21
22 </pre>
23 <script src="../js/resources/js-test-post.js"></script>
24 </body>
25 </html>