cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rkn...@apache.org
Subject cordova-plugin-file git commit: Fix test failure on WP 8.1
Date Sat, 12 Mar 2016 01:29:17 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master f863542a7 -> 61c0f76f1


Fix test failure on WP 8.1

This closes #171


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/61c0f76f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/61c0f76f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/61c0f76f

Branch: refs/heads/master
Commit: 61c0f76f1d2a68f4fd9159fb30a3edcb65849ae1
Parents: f863542
Author: Jason Ginchereau <jasongin@microsoft.com>
Authored: Fri Mar 11 16:47:47 2016 -0800
Committer: Richard Knoll <richard.b.knoll@gmail.com>
Committed: Fri Mar 11 17:20:59 2016 -0800

----------------------------------------------------------------------
 tests/tests.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/61c0f76f/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index def599a..a7de7aa 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -2441,7 +2441,7 @@ exports.defineAutoTests = function () {
                 }
 
                 // Set the chunk size so that the read will take 5 chunks
-                FileReader.READ_CHUNK_SIZE = largeText.length / 4 + 1;
+                FileReader.READ_CHUNK_SIZE = Math.floor(largeText.length / 4) + 1;
 
                 var chunkCount = 0;
                 var lastProgressValue = -1;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message