CB-10579 WebSQL mobilespec tests don't work on OSX
diff --git a/cordova-plugin-mobilespec-tests/tests/storage.tests.js b/cordova-plugin-mobilespec-tests/tests/storage.tests.js
index 265e440..671d16f 100644
--- a/cordova-plugin-mobilespec-tests/tests/storage.tests.js
+++ b/cordova-plugin-mobilespec-tests/tests/storage.tests.js
@@ -21,8 +21,9 @@
exports.defineAutoTests = function () {
var isWindowsPhone = cordova.platformId == 'windowsphone';
- var isWindows = (cordova.platformId === "windows") || (cordova.platformId === "windows8")
+ var isWindows = (cordova.platformId === "windows") || (cordova.platformId === "windows8");
var isIOS = (cordova.platformId === "ios");
+ var isOSX = (cordova.platformId === "osx");
var isIOSWKWebView = isIOS && (window.webkit && window.webkit.messageHandlers);
describe("Session Storage", function () {
@@ -178,7 +179,7 @@
describe("HTML 5 Storage", function () {
it("storage.spec.9 should exist", function () {
- expect(window.openDatabase);
+ expect(window.openDatabase).toBeDefined();
});
it("storage.spec.17 should contain an openDatabase function", function () {
@@ -217,6 +218,10 @@
if (isIOSWKWebView) {
pending();
}
+ if (isOSX) {
+ // see CB-10579
+ pending();
+ }
var db = openDatabase("Database", "1.0", "HTML5 Database API example", 5 * 1024 * 1024);
db.transaction(function (t) {
@@ -232,4 +237,4 @@
});
});
});
-}
+};