Repository: cordova-mobile-spec Updated Branches: refs/heads/master 785abbfc3 -> f4e116b8a
CB-7287 - Mark XMLHttpRequest.spec.4 and storage.spec.18 tests as pending when on iOS and using cordova-plugin-wkwebview-engine (due to known issues). 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/f4e116b8 Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/f4e116b8 Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/f4e116b8 Branch: refs/heads/master Commit: f4e116b8a81e2470809a0ffba437fe268aaeab93 Parents: 785abbf Author: Shazron Abdullah <[email protected]> Authored: Wed Dec 2 01:48:36 2015 -0800 Committer: Shazron Abdullah <[email protected]> Committed: Wed Dec 2 01:48:58 2015 -0800 ---------------------------------------------------------------------- cordova-plugin-mobilespec-tests/tests/localXHR.tests.js | 8 +++++++- cordova-plugin-mobilespec-tests/tests/storage.tests.js | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/f4e116b8/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js ---------------------------------------------------------------------- diff --git a/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js b/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js index 1353692..f42ed63 100644 --- a/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js +++ b/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js @@ -21,7 +21,9 @@ exports.defineAutoTests = function () { var isWp8 = cordova.platformId === "windowsphone"; - + var isIOS = (cordova.platformId === "ios"); + var isIOSWKWebView = isIOS && (window.webkit && window.webkit.messageHandlers); + describe("XMLHttpRequest", function () { var errorHandler = { onError: function (done) { @@ -105,6 +107,10 @@ exports.defineAutoTests = function () { }); it("XMLHttpRequest.spec.4 should be able to load the parent folder page ../index.html", function (done) { + if (isIOSWKWebView) { + pending(); + } + createXHR("../index.html", true, done, errorHandler.onError.bind(null, done)); }); http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/f4e116b8/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 2a344be..265e440 100644 --- a/cordova-plugin-mobilespec-tests/tests/storage.tests.js +++ b/cordova-plugin-mobilespec-tests/tests/storage.tests.js @@ -22,6 +22,8 @@ exports.defineAutoTests = function () { var isWindowsPhone = cordova.platformId == 'windowsphone'; var isWindows = (cordova.platformId === "windows") || (cordova.platformId === "windows8") + var isIOS = (cordova.platformId === "ios"); + var isIOSWKWebView = isIOS && (window.webkit && window.webkit.messageHandlers); describe("Session Storage", function () { it("storage.spec.1 should exist", function () { @@ -211,6 +213,10 @@ exports.defineAutoTests = function () { if (!window.openDatabase) { pending(); } + + if (isIOSWKWebView) { + pending(); + } var db = openDatabase("Database", "1.0", "HTML5 Database API example", 5 * 1024 * 1024); db.transaction(function (t) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
