Improve test cases for network information APIs
[WebKit-https.git] / LayoutTests / networkinformation / script-tests / add-listener-from-callback.js
index 365fc79..b1a4c76 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"');
 }
 
 var firstListenerEvents = 0;