CB-11959 Increased the array length for ios and winstore even more
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/ebf280b5 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/ebf280b5 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/ebf280b5 Branch: refs/heads/1.6.x Commit: ebf280b53155de7f3167fdfff01478d723fa86c0 Parents: 709fd05 Author: Alexander Sorokin <[email protected]> Authored: Wed Oct 5 18:08:29 2016 +0300 Committer: Alexander Sorokin <[email protected]> Committed: Wed Oct 5 18:08:29 2016 +0300 ---------------------------------------------------------------------- tests/tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/ebf280b5/tests/tests.js ---------------------------------------------------------------------- diff --git a/tests/tests.js b/tests/tests.js index f4fd636..5bed919 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -53,6 +53,7 @@ exports.defineAutoTests = function () { // flags var isWindows = cordova.platformId === "windows8" || cordova.platformId === "windows"; + var isWindowsPhone81 = isWindows && WinJS.Utilities.isPhone var isWP8 = cordova.platformId === "windowsphone"; var isBrowser = cordova.platformId === "browser"; var isIE = isBrowser && navigator.userAgent.indexOf("Trident") >= 0; @@ -1077,7 +1078,7 @@ exports.defineAutoTests = function () { // windows store and ios are too fast, win is called before we have a chance to abort // so let's get them busy - while not providing an extra load to the slow Android emulators - var arrayLength = (isWindows || isIos) ? 1000000 : 200000; + var arrayLength = ((isWindows && !isWindowsPhone81) || isIos) ? 3000000 : 200000; writeFile(specContext.root, specContext.fileName, new Array(arrayLength).join("aborttest!"), fileWin, done); }, UPLOAD_TIMEOUT); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
