blob: 7c4fd3b584f3f96604c736a3c36f49443054a68a [file] [log] [blame]
Tests the basic operation of NetInfo.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS navigator.connection is defined.
PASS navigator.connection.type is defined.
PASS navigator.connection.saveData is defined.
PASS navigator.connection.downlinkMax is defined.
PASS navigator.connection.effectiveType is defined.
PASS navigator.connection.rtt is defined.
PASS navigator.connection.downlink is defined.
PASS typeof connection.type is "string"
PASS connection.type is newConnectionType
PASS connection.saveData is false
PASS connection.downlinkMax is newDownlinkMax
PASS connection.effectiveType is initialEffectiveType
PASS connection.rtt is initialRtt
PASS connection.downlink is initialDownlink
PASS typeof connection.type is "string"
PASS connection.type is initialType
PASS connection.saveData is false
PASS connection.downlinkMax is initialDownlinkMax
PASS connection.effectiveType is initialEffectiveType
PASS connection.rtt is initialRtt
PASS connection.downlink is initialDownlink
PASS successfullyParsed is true
TEST COMPLETE