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

Side by Side Diff: chrome/test/data/keyevents_test.html

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 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
« no previous file with comments | « chrome/test/data/gpu/webgl_popup.html ('k') | chrome/test/data/local_ntp_browsertest.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « chrome/test/data/gpu/webgl_popup.html ('k') | chrome/test/data/local_ntp_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698