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

Unified Diff: third_party/WebKit/LayoutTests/netinfo/type-change-no-listener.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/type-change-no-listener.html
diff --git a/third_party/WebKit/LayoutTests/netinfo/type-change-no-listener.html b/third_party/WebKit/LayoutTests/netinfo/type-change-no-listener.html
index 5f6d2924911fd0af5f6127b4a1d440d477dfa3db..cc1bc2c991c299d6101edf9b3c875028f07da2c3 100644
--- a/third_party/WebKit/LayoutTests/netinfo/type-change-no-listener.html
+++ b/third_party/WebKit/LayoutTests/netinfo/type-change-no-listener.html
@@ -8,8 +8,12 @@
description('Tests that the type changes without an active listener');
internals.setNetworkConnectionInfoOverride(isTypeOnline(newConnectionType), newConnectionType, newDownlinkMax);
+internals.setNetworkQualityInfoOverride(newEffectiveType, newRtt, newDownlink);
shouldBe('connection.type', 'newConnectionType');
shouldBe('connection.downlinkMax', 'newDownlinkMax');
+shouldBe('connection.effectiveType', 'newEffectiveType');
+shouldBe('connection.rtt', 'newRtt');
+shouldBe('connection.downlink', 'newDownlink');
finishJSTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698