OLD | NEW |
1 <p>To test manually, press keys and compare results to other browsers.</p> | 1 <p>To test manually, press keys and compare results to other browsers.</p> |
2 <input type="text" | 2 <input type="text" |
3 onclick="log(eventInfo(event));" | 3 onclick="log(eventInfo(event));" |
4 onmousedown="log(eventInfo(event));" | 4 onmousedown="log(eventInfo(event));" |
5 onmouseup="log(eventInfo(event));" | 5 onmouseup="log(eventInfo(event));" |
6 onkeypress="log(eventInfo(event));" | 6 onkeypress="log(eventInfo(event));" |
7 onkeydown="log(eventInfo(event));" | 7 onkeydown="log(eventInfo(event));" |
8 onkeyup="log(eventInfo(event));"> | 8 onkeyup="log(eventInfo(event));"> |
9 </input> | 9 </input> |
10 <input type=text></input> | 10 <input type=text></input> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 if (document.getElementsByTagName("input")[0].addEventListener) | 45 if (document.getElementsByTagName("input")[0].addEventListener) |
46 document.getElementsByTagName("input")[0].addEventListener('textInput', func
tion(e) {log(eventInfo(e));}, false); | 46 document.getElementsByTagName("input")[0].addEventListener('textInput', func
tion(e) {log(eventInfo(e));}, false); |
47 | 47 |
48 document.getElementsByTagName("input")[0].focus(); | 48 document.getElementsByTagName("input")[0].focus(); |
49 | 49 |
50 if (window.testRunner) { | 50 if (window.testRunner) { |
51 testRunner.dumpAsText(); | 51 testRunner.dumpAsText(); |
52 log("Space:"); | 52 log("Space:"); |
53 eventSender.keyDown(" ", []); | 53 eventSender.keyDown(" ", []); |
54 log("Backspace:"); | 54 log("Backspace:"); |
55 eventSender.keyDown("\x08", []); | 55 eventSender.keyDown("backspace", []); |
56 log("Left Arrow:"); | 56 log("Left Arrow:"); |
57 eventSender.keyDown("leftArrow", []); | 57 eventSender.keyDown("leftArrow", []); |
58 log("Tab:"); | 58 log("Tab:"); |
59 eventSender.keyDown("\t", []); | 59 eventSender.keyDown("\t", []); |
60 } | 60 } |
61 </script> | 61 </script> |
OLD | NEW |