Repository: cordova-plugin-file-transfer Updated Branches: refs/heads/master 6fee83592 -> 6c253e832
CB-6900 fixed spec.7 for wp8 Test needs to check for x-wmapp0:/ instead of file:/ in case of wp Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/9d0ecc23 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/9d0ecc23 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/9d0ecc23 Branch: refs/heads/master Commit: 9d0ecc233f1e06d33dfb6dcb6f2d4fdd4f6a16af Parents: 3b4afc8 Author: Staci Cooper <[email protected]> Authored: Tue Jul 29 16:03:35 2014 -0400 Committer: Staci Cooper <[email protected]> Committed: Tue Jul 29 16:03:35 2014 -0400 ---------------------------------------------------------------------- test/tests.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/9d0ecc23/test/tests.js ---------------------------------------------------------------------- diff --git a/test/tests.js b/test/tests.js index 2eedd95..11e30b7 100644 --- a/test/tests.js +++ b/test/tests.js @@ -245,7 +245,10 @@ exports.defineAutoTests = function () { var lastProgressEvent = null; if (!/^file/.exec(remoteFile) && cordova.platformId !== 'blackberry10') { - expect(remoteFile).toMatch(/^file:/); + if (cordova.platformId !== 'windowsphone') + expect(remoteFile).toMatch(/^file:/); + else + expect(remoteFile).toMatch(/^x-wmapp0:/); done(); return; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
