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

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

Issue 2883763002: Expose ECT to render frames, Blink and NetInfo (Closed)
Patch Set: rebased Created 3 years, 6 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></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.toString()); 10 sendValueToTest(navigator.connection.downlinkMax.toString());
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() {
18 sendValueToTest(navigator.connection.effectiveType);
19 }
20
17 function getRtt() { 21 function getRtt() {
18 sendValueToTest(navigator.connection.rtt.toString()); 22 sendValueToTest(navigator.connection.rtt.toString());
19 } 23 }
20 24
21 function getDownlink() { 25 function getDownlink() {
22 sendValueToTest(navigator.connection.downlink.toString()); 26 sendValueToTest(navigator.connection.downlink.toString());
23 } 27 }
24 28
25 function sendValueToTest(value) { 29 function sendValueToTest(value) {
26 window.domAutomationController.setAutomationId(0); 30 window.domAutomationController.setAutomationId(0);
27 window.domAutomationController.send(value); 31 window.domAutomationController.send(value);
28 } 32 }
29 33
30 </script> 34 </script>
31 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698