Improve test cases for network information APIs
[WebKit-https.git] / LayoutTests / networkinformation / script-tests / basic-operation.js
index 44cfc61..0a8c8da 100644 (file)
@@ -6,8 +6,8 @@ var metered = false;
 var connection = navigator.webkitConnection;
 
 connection.addEventListener('webkitnetworkinfochange', function() {
-    shouldBe('connection.bandwidth', 'bandwidth');
-    shouldBe('connection.metered', 'metered');
+    shouldBe("typeof connection.bandwidth", '"number"');
+    shouldBe("typeof connection.metered", '"boolean"');
     finishJSTest();
 });