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 description('Tests that the type changes without an active listener'); | 8 description('Tests that the type changes without an active listener'); |
9 | 9 |
10 internals.setNetworkConnectionInfo(newConnectionType); | 10 internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax); |
11 shouldBe('connection.type', 'newConnectionType'); | 11 shouldBe('connection.type', 'newConnectionType'); |
| 12 shouldBe('connection.downlinkMax', 'newDownlinkMax'); |
12 | 13 |
13 finishJSTest(); | 14 finishJSTest(); |
14 </script> | 15 </script> |
15 </body> | 16 </body> |
16 </html> | 17 </html> |
OLD | NEW |