You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2016/10/05 16:01:28 UTC

cordova-plugin-file-transfer git commit: CB-11959 Increased the array length for ios and winstore even more

Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 709fd057f -> ebf280b53


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/master
Commit: ebf280b53155de7f3167fdfff01478d723fa86c0
Parents: 709fd05
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Wed Oct 5 18:08:29 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org