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

Side by Side Diff: chrome/test/data/page_with_focus_events.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 5
6 var popup; 6 var popup;
7 7
8 function openPopup(url, name) { 8 function openPopup(url, name) {
9 popup = window.open(url, name); 9 popup = window.open(url, name);
10 } 10 }
11 11
12 function focusPopup(url) { 12 function focusPopup(url) {
13 popup.focus(); 13 popup.focus();
14 } 14 }
15 15
16 window.addEventListener('focus', function() { 16 window.addEventListener('focus', function() {
17 domAutomationController.setAutomationId(0);
18 domAutomationController.send(window.name + '-got-focus'); 17 domAutomationController.send(window.name + '-got-focus');
19 }); 18 });
20 19
21 window.addEventListener('blur', function() { 20 window.addEventListener('blur', function() {
22 domAutomationController.setAutomationId(0);
23 domAutomationController.send(window.name + '-lost-focus'); 21 domAutomationController.send(window.name + '-lost-focus');
24 }); 22 });
25 23
26 </script> 24 </script>
27 </head> 25 </head>
28 26
29 <body> 27 <body>
30 This page has focus and blur window events. 28 This page has focus and blur window events.
31 </body> 29 </body>
32 </html> 30 </html>
33 31
OLDNEW
« no previous file with comments | « chrome/test/data/nacl/pnacl_url_loader/pnacl_url_loader.html ('k') | chrome/test/data/password/frame_detached_on_submit.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698