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

Side by Side Diff: content/test/data/page_with_input_field.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 | « content/test/data/page_with_blur.html ('k') | content/test/data/post_message.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 5
6 function focusInputField() { 6 function focusInputField() {
7 var inputField = document.getElementById("text-field"); 7 var inputField = document.getElementById("text-field");
8 inputField.focus(); 8 inputField.focus();
9 } 9 }
10 10
11 function getInputFieldText() { 11 function getInputFieldText() {
12 var inputField = document.getElementById("text-field"); 12 var inputField = document.getElementById("text-field");
13 return inputField.value; 13 return inputField.value;
14 } 14 }
15 15
16 function onInputFocus() { 16 function onInputFocus() {
17 domAutomationController.setAutomationId(0);
18 domAutomationController.send("input-focus"); 17 domAutomationController.send("input-focus");
19 } 18 }
20 19
21 function onInputBlur() { 20 function onInputBlur() {
22 domAutomationController.setAutomationId(0);
23 domAutomationController.send("input-blur"); 21 domAutomationController.send("input-blur");
24 } 22 }
25 23
26 </script> 24 </script>
27 </head> 25 </head>
28 26
29 <body> 27 <body>
30 This page has a cross-site iframe and a text input field. 28 This page has a cross-site iframe and a text input field.
31 <input type='text' id='text-field' 29 <input type='text' id='text-field'
32 onfocus="onInputFocus()" onblur="onInputBlur()"><br> 30 onfocus="onInputFocus()" onblur="onInputBlur()"><br>
33 <iframe id='subframe' src="/cross-site/b.com/page_with_blur.html"></iframe> 31 <iframe id='subframe' src="/cross-site/b.com/page_with_blur.html"></iframe>
34 </body> 32 </body>
35 </html> 33 </html>
36 34
OLDNEW
« no previous file with comments | « content/test/data/page_with_blur.html ('k') | content/test/data/post_message.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698