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

Side by Side Diff: LayoutTests/netinfo/basic-operation.html

Issue 291203002: Adds NetInfo v3 Web API to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo1
Patch Set: Simplified layout tests Created 6 years, 7 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
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698