Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 <html> | |
| 
 
jochen (gone - plz use gerrit)
2014/05/28 11:57:03
<!DOCTYPE html>
 
jkarlin
2014/05/28 15:34:00
Done.
 
 | |
| 2 <head> | |
| 3 <script src="../resources/js-test.js"></script> | |
| 4 <script src="resources/netinfo_common.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <script> | |
| 8 | |
| 9 description('Tests the basic operation of NetInfo.'); | |
| 10 | |
| 11 | |
| 12 shouldBeDefined("navigator.connection"); | |
| 13 shouldBeDefined("navigator.connection.type"); | |
| 14 | |
| 15 connection.addEventListener('typechange', function(e) { | |
| 16 shouldBe("typeof connection.type", '"string"'); | |
| 17 if (connection.type != newConnectionType) | |
| 18 testFailed("The connection type did not change."); | |
| 19 finishJSTest(); | |
| 20 }); | |
| 21 | |
| 22 internals.setNetworkConnectionInfo(newConnectionType); | |
| 
 
jochen (gone - plz use gerrit)
2014/05/28 11:57:03
check for existence of window.internals before acc
 
jkarlin
2014/05/28 15:34:00
Done.
 
 | |
| 23 | |
| 24 </script> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |