Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / typing-tab-designmode-forms.html
blobead1c38fb02c785bcf07c1e77fd8be5e259f618f
1 <body>
2 tabbing between forms in design mode: should result tab-space in the focused form.<br>
4 <pre id="console"></pre>
5 <input id=i><br>
6 <input id=j>
7 <script>
9 function log(msg)
11 document.getElementById("console").appendChild(document.createTextNode(msg + "\n"));
14 if (window.testRunner)
15 testRunner.dumpAsText();
17 document.designMode="on";
19 var e = document.getElementById('i');
20 e.focus();
22 if (window.eventSender) {
23 var mod = [];
24 eventSender.keyDown('\t', mod);
27 log("text in the first input[" + e.value + "]");
28 log("text in the second input[" + document.getElementById('j').value + "]");
30 </script>