CB-10579 WebSQL mobilespec tests don't work on OSX

Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/0886ceec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/0886ceec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/0886ceec

Branch: refs/heads/master
Commit: 0886ceec19fadb648e038c172a52e3a8fc327678
Parents: d422861
Author: Tobias Bocanegra <[email protected]>
Authored: Tue Feb 9 13:49:17 2016 -0800
Committer: Tobias Bocanegra <[email protected]>
Committed: Thu Feb 11 09:34:30 2016 -0800

----------------------------------------------------------------------
 cordova-plugin-mobilespec-tests/tests/storage.tests.js | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/0886ceec/cordova-plugin-mobilespec-tests/tests/storage.tests.js
----------------------------------------------------------------------
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 @@ exports.defineAutoTests = function () {
 
         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 @@ exports.defineAutoTests = function () {
                     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 @@ exports.defineAutoTests = function () {
             });
         });
     });
-}
+};


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to