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

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

Issue 2903493002: NetInfo network quality extension: Add callbacks and Layout tests (Closed)
Patch Set: haraken comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/netinfo/unregister-during-event.html
diff --git a/third_party/WebKit/LayoutTests/netinfo/unregister-during-event.html b/third_party/WebKit/LayoutTests/netinfo/unregister-during-event.html
index d5124dd701eec278dc1331a6979c96ed05f0c145..db30c9eee9b574263353e22cf96092b8a9752cf1 100644
--- a/third_party/WebKit/LayoutTests/netinfo/unregister-during-event.html
+++ b/third_party/WebKit/LayoutTests/netinfo/unregister-during-event.html
@@ -14,6 +14,9 @@ shouldBe('typeof window.internals.observeGC', '"function"',
var otherHandler = function(e) {
shouldBe('connection.type', 'initialType');
shouldBe('connection.downlinkMax', 'initialDownlinkMax');
+ shouldBe('connection.effectiveType', 'initialEffectiveType');
+ shouldBe('connection.rtt', 'initialRtt');
+ shouldBe('connection.downlink', 'initialDownlink');
finishJSTest();
};
@@ -21,6 +24,9 @@ var otherHandler = function(e) {
var handler = function(e) {
shouldBe('connection.type', 'newConnectionType');
shouldBe('connection.downlinkMax', 'newDownlinkMax');
+ shouldBe('connection.effectiveType', 'initialEffectiveType');
+ shouldBe('connection.rtt', 'initialRtt');
+ shouldBe('connection.downlink', 'initialDownlink');
connection.removeEventListener('change', handler);
connection.addEventListener('change', otherHandler);
internals.setNetworkConnectionInfoOverride(isTypeOnline(initialType), initialType, initialDownlinkMax);

Powered by Google App Engine
This is Rietveld 408576698