OLD | NEW |
1 <html><head> | 1 <html><head> |
2 <meta http-equiv="content-type" content="text/html; charset=utf-8"> | 2 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
3 <script type="text/javascript"> | 3 <script type="text/javascript"> |
4 var defaultActions = { | 4 var defaultActions = { |
5 'keydown': true, | 5 'keydown': true, |
6 'keypress': true, | 6 'keypress': true, |
7 'keyup': true, | 7 'keyup': true, |
8 'textInput': true, | 8 'textInput': true, |
9 }; | 9 }; |
10 var keyEventResult = []; | 10 var keyEventResult = []; |
(...skipping 29 matching lines...) Expand all Loading... |
40 testStarted = true; | 40 testStarted = true; |
41 expectedEventCount = count; | 41 expectedEventCount = count; |
42 log("Start test."); | 42 log("Start test."); |
43 return true; | 43 return true; |
44 } | 44 } |
45 return false; | 45 return false; |
46 } | 46 } |
47 | 47 |
48 function finishTest() { | 48 function finishTest() { |
49 testStarted = false; | 49 testStarted = false; |
50 window.domAutomationController.setAutomationId(0); | |
51 window.domAutomationController.send("FINISHED"); | 50 window.domAutomationController.send("FINISHED"); |
52 log("Finish test."); | 51 log("Finish test."); |
53 } | 52 } |
54 | 53 |
55 function handleEvent(e) { | 54 function handleEvent(e) { |
56 var prefixes = { | 55 var prefixes = { |
57 'keydown': 'D', | 56 'keydown': 'D', |
58 'keypress': 'P', | 57 'keypress': 'P', |
59 'keyup': 'U', | 58 'keyup': 'U', |
60 'textInput': 'T', | 59 'textInput': 'T', |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 <input type="checkbox" id="D" accesskey='D' | 164 <input type="checkbox" id="D" accesskey='D' |
166 onfocus="onFocus(this)" onblur="onBlur(this)"/> | 165 onfocus="onFocus(this)" onblur="onBlur(this)"/> |
167 <input type="text" id="A" accesskey="A" | 166 <input type="text" id="A" accesskey="A" |
168 onfocus="onFocus(this)" onblur="onBlur(this)"/> | 167 onfocus="onFocus(this)" onblur="onBlur(this)"/> |
169 <input type="password" id="B" accesskey="B" | 168 <input type="password" id="B" accesskey="B" |
170 onfocus="onFocus(this)" onblur="onBlur(this)"/> | 169 onfocus="onFocus(this)" onblur="onBlur(this)"/> |
171 <button id="clear" accesskey='C' onclick="clearResult()">Clear</button> | 170 <button id="clear" accesskey='C' onclick="clearResult()">Clear</button> |
172 <p id="log"></p> | 171 <p id="log"></p> |
173 </body> | 172 </body> |
174 </html> | 173 </html> |
OLD | NEW |