Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / plugins / sequential-focus.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/js-test.js"></script>
4
5 <input id="input-pre">
6 <iframe srcdoc="<object type='application/x-webkit-test-netscape'></object>"></iframe>
7 <input id="input-post">
8
9 <script>
10 description('Test if sequential focus navigation works well with OBJECT in IFRAME.');
11 jsTestIsAsync = true;
12 window.onload = function() {
13     if (!window.eventSender) {
14         debug('Manual test instruction: Focus on the first INPUT, press TAB twice, confirm the second INPUT gets focus.');
15         return;
16     }
17     document.getElementById('input-pre').focus();
18     eventSender.keyDown('\t');
19     eventSender.keyDown('\t');
20     shouldBeEqualToString('document.activeElement.id', 'input-post');
21     finishJSTest();
22 };
23 </script>
24 </body>