Improve test cases for network information APIs
[WebKit-https.git] / LayoutTests / networkinformation / script-tests / updates.js
index e6cad6c..9fa8fa4 100644 (file)
@@ -6,8 +6,8 @@ var metered = false;
 var connection = navigator.webkitConnection;
 
 function checkNetworkInformation() {
-    shouldBe('connection.bandwidth', 'bandwidth');
-    shouldBe('connection.metered', 'metered');
+    shouldBe("typeof connection.bandwidth", '"number"');
+    shouldBe("typeof connection.metered", '"boolean"');
 }
 
 function setNetworkInformation() {