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

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: Comment typo Created 6 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
(Empty)
1 <!DOCTYPE html>
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 description('Tests the basic operation of NetInfo.');
9
10 shouldBe('typeof window.internals.observeGC', '"function"',
11 'this test requires window.internals');
12
13 shouldBeDefined("navigator.connection");
14 shouldBeDefined("navigator.connection.type");
15
16 connection.addEventListener('typechange', function(e) {
17 shouldBe("typeof connection.type", '"string"');
18 if (connection.type != newConnectionType)
19 testFailed("The connection type did not change.");
20 finishJSTest();
21 });
22
23 internals.setNetworkConnectionInfo(newConnectionType);
24
25 </script>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt ('k') | LayoutTests/netinfo/basic-operation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698