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

Side by Side Diff: content/test/data/net_info.html

Issue 1306423004: [NetInfo] Browser changes to support connection.downlinkMax (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor browser test fix Created 5 years, 3 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/renderer/render_view_impl.cc ('k') | net/base/network_change_notifier.h » ('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() {
10 sendValueToTest(navigator.connection.downlinkMax.toString());
11 }
12
9 function getOnLine() { 13 function getOnLine() {
10 sendValueToTest(navigator.onLine); 14 sendValueToTest(navigator.onLine);
11 } 15 }
12 16
13 function sendValueToTest(value) { 17 function sendValueToTest(value) {
14 window.domAutomationController.setAutomationId(0); 18 window.domAutomationController.setAutomationId(0);
15 window.domAutomationController.send(value); 19 window.domAutomationController.send(value);
16 } 20 }
17 21
18 </script> 22 </script>
19 </html> 23 </html>
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | net/base/network_change_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698