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

Unified Diff: LayoutTests/netinfo/unregister-during-event.html

Issue 1308943005: [NetInfo] Add Blink support for connection.change, connection.downlinkMax, and wimax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/netinfo/unregister-during-event.html
diff --git a/LayoutTests/netinfo/unregister-during-event.html b/LayoutTests/netinfo/unregister-during-event.html
index 9d614ee689b5c78ae3891fa07d365ff468d3f095..7325f8827ef799baa3e5f50352c90bdbc75eaa07 100644
--- a/LayoutTests/netinfo/unregister-during-event.html
+++ b/LayoutTests/netinfo/unregister-during-event.html
@@ -13,18 +13,21 @@ shouldBe('typeof window.internals.observeGC', '"function"',
var otherHandler = function(e) {
shouldBe('connection.type', 'initialType');
+ shouldBe('connection.downlinkMax', 'initialDownlinkMax');
+
finishJSTest();
};
var handler = function(e) {
shouldBe('connection.type', 'newConnectionType');
- connection.removeEventListener('typechange', handler);
- connection.addEventListener('typechange', otherHandler);
- internals.setNetworkConnectionInfo(initialType);
+ shouldBe('connection.downlinkMax', 'newDownlinkMax');
+ connection.removeEventListener('change', handler);
+ connection.addEventListener('change', otherHandler);
+ internals.setNetworkConnectionInfo(initialType, initialDownlinkMax);
};
-connection.addEventListener('typechange', handler);
-internals.setNetworkConnectionInfo(newConnectionType);
+connection.addEventListener('change', handler);
+internals.setNetworkConnectionInfo(newConnectionType, newDownlinkMax);
</script>
</body>
« no previous file with comments | « LayoutTests/netinfo/type-change-no-listener-expected.txt ('k') | LayoutTests/netinfo/unregister-during-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698