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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/input/dispatchKeyEvent-focus.html

Issue 2045603002: Handle the "key" field as opposed to keyIdentifier field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove initialization of the view Created 4 years, 6 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 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script> 4 <script>
5 5
6 function load() 6 function load()
7 { 7 {
8 window.internals.setFocused(false); 8 window.internals.setFocused(false);
9 runTest(); 9 runTest();
10 } 10 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 "keyIdentifier": hex 47 "keyIdentifier": hex
48 }); 48 });
49 } 49 }
50 } 50 }
51 51
52 function typeTab() 52 function typeTab()
53 { 53 {
54 InspectorTest.sendCommand("Input.dispatchKeyEvent", { 54 InspectorTest.sendCommand("Input.dispatchKeyEvent", {
55 "type": "rawKeyDown", 55 "type": "rawKeyDown",
56 "windowsVirtualKeyCode": 9, 56 "windowsVirtualKeyCode": 9,
57 "keyIdentifier": "U+0009" 57 "keyIdentifier": "U+0009",
58 "key": "Tab",
58 }); 59 });
59 InspectorTest.sendCommand("Input.dispatchKeyEvent", { 60 InspectorTest.sendCommand("Input.dispatchKeyEvent", {
60 "type": "char" 61 "type": "char"
61 }); 62 });
62 InspectorTest.sendCommand("Input.dispatchKeyEvent", { 63 InspectorTest.sendCommand("Input.dispatchKeyEvent", {
63 "type": "keyUp", 64 "type": "keyUp",
64 "windowsVirtualKeyCode": 9, 65 "windowsVirtualKeyCode": 9,
65 "keyIdentifier": "U+0009" 66 "keyIdentifier": "U+0009",
67 "key": "Tab",
66 }); 68 });
67 } 69 }
68 } 70 }
69 71
70 </script> 72 </script>
71 </head> 73 </head>
72 <body onload="load()"> 74 <body onload="load()">
73 <div id="inputs"> 75 <div id="inputs">
74 <input onfocus="log('focus foo')" onblur="log('blur foo')" id="foo" autofocus> 76 <input onfocus="log('focus foo')" onblur="log('blur foo')" id="foo" autofocus>
75 <input onfocus="log('focus bar')" onblur="log('blur bar')" id="bar"> 77 <input onfocus="log('focus bar')" onblur="log('blur bar')" id="bar">
76 <input onfocus="log('focus baz')" onblur="log('blur baz')" id="baz"> 78 <input onfocus="log('focus baz')" onblur="log('blur baz')" id="baz">
77 </div> 79 </div>
78 </body> 80 </body>
79 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698