Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: LayoutTests/fast/events/key-events-in-input-text.html

Issue 484353004: Test tidying: use "escape" and "backspace" with eventSender.keyDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More quoting consistency wibbles Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/drag-and-drop-autoscroll.html ('k') | LayoutTests/fast/events/menu-key-context-menu.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698