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

Side by Side Diff: chrome/test/data/chrome_extension_resource.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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 var xhrStatus = -1; 4 var xhrStatus = -1;
5 // An icon in the simple_with_icon test extension. 5 // An icon in the simple_with_icon test extension.
6 var imgUrl = 'chrome-extension://ombfbiolafbecdcaofoilglhmobpdbnd/icon.png'; 6 var imgUrl = 'chrome-extension://ombfbiolafbecdcaofoilglhmobpdbnd/icon.png';
7 7
8 window.onload = function() { 8 window.onload = function() {
9 // The call to pushState with chrome-extension:// URL will succeed, since the 9 // The call to pushState with chrome-extension:// URL will succeed, since the
10 // test uses --disable-web-security. 10 // test uses --disable-web-security.
11 history.pushState('', '', 11 history.pushState('', '',
12 'chrome-extension://ombfbiolafbecdcaofoilglhmobpdbnd/'); 12 'chrome-extension://ombfbiolafbecdcaofoilglhmobpdbnd/');
13 var xhr = new XMLHttpRequest(); 13 var xhr = new XMLHttpRequest();
14 xhr.onreadystatechange = function() { 14 xhr.onreadystatechange = function() {
15 if (xhr.readyState == 4) { 15 if (xhr.readyState == 4) {
16 xhrStatus = xhr.status; 16 xhrStatus = xhr.status;
17 if (xhrStatus == 200) { 17 if (xhrStatus == 200) {
18 document.getElementById('star').src = 18 document.getElementById('star').src =
19 window.URL.createObjectURL(this.response); 19 window.URL.createObjectURL(this.response);
20 } 20 }
21 domAutomationController.setAutomationId(0);
22 domAutomationController.send(xhr.status); 21 domAutomationController.send(xhr.status);
23 } 22 }
24 } 23 }
25 xhr.open('GET', imgUrl); 24 xhr.open('GET', imgUrl);
26 xhr.responseType = 'blob'; 25 xhr.responseType = 'blob';
27 xhr.send(); 26 xhr.send();
28 } 27 }
29 </script> 28 </script>
30 </head> 29 </head>
31 <body> 30 <body>
32 <img id='star'> 31 <img id='star'>
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/automation/sends_message_on_load.html ('k') | chrome/test/data/drag_and_drop/event_monitoring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698