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

Side by Side Diff: content/test/data/net_info.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/gpu/webgl.html ('k') | content/test/data/page_with_blur.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 <html> 1 <html>
2 <head></head> 2 <head></head>
3 <script> 3 <script>
4 4
5 function getType() { 5 function getType() {
6 sendValueToTest(navigator.connection.type); 6 sendValueToTest(navigator.connection.type);
7 } 7 }
8 8
9 function getDownlinkMax() { 9 function getDownlinkMax() {
10 sendValueToTest(navigator.connection.downlinkMax); 10 sendValueToTest(navigator.connection.downlinkMax);
11 } 11 }
12 12
13 function getOnLine() { 13 function getOnLine() {
14 sendValueToTest(navigator.onLine); 14 sendValueToTest(navigator.onLine);
15 } 15 }
16 16
17 function getEffectiveType() { 17 function getEffectiveType() {
18 sendValueToTest(navigator.connection.effectiveType); 18 sendValueToTest(navigator.connection.effectiveType);
19 } 19 }
20 20
21 function getRtt() { 21 function getRtt() {
22 sendValueToTest(navigator.connection.rtt); 22 sendValueToTest(navigator.connection.rtt);
23 } 23 }
24 24
25 function getDownlink() { 25 function getDownlink() {
26 sendValueToTest(navigator.connection.downlink); 26 sendValueToTest(navigator.connection.downlink);
27 } 27 }
28 28
29 function sendValueToTest(value) { 29 function sendValueToTest(value) {
30 window.domAutomationController.setAutomationId(0);
31 window.domAutomationController.send(value); 30 window.domAutomationController.send(value);
32 } 31 }
33 32
34 </script> 33 </script>
35 </html> 34 </html>
OLDNEW
« no previous file with comments | « content/test/data/gpu/webgl.html ('k') | content/test/data/page_with_blur.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698