| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
| 4 <script src="resources/netinfo_common.js"></script> | 4 <script src="resources/netinfo_common.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 description('Tests using NetInfo from multiple frames.'); | 9 description('Tests using NetInfo from multiple frames.'); |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 function maybeFinishTest() { | 47 function maybeFinishTest() { |
| 48 if (hasMainFrameEventFired && hasChildFrameEventFired) { | 48 if (hasMainFrameEventFired && hasChildFrameEventFired) { |
| 49 finishJSTest(); | 49 finishJSTest(); |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 connection.addEventListener('change', mainFrameListener); | 53 connection.addEventListener('change', mainFrameListener); |
| 54 childConnection.addEventListener('change', childFrameListener); | 54 childConnection.addEventListener('change', childFrameListener); |
| 55 | 55 |
| 56 internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax); | 56 internals.setNetworkConnectionInfoOverride(isTypeOnline(newConnectionType), newC
onnectionType, newDownlinkMax); |
| 57 | 57 |
| 58 </script> | 58 </script> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |