Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E5AE19034 for ; Sat, 12 Mar 2016 01:29:18 +0000 (UTC) Received: (qmail 99638 invoked by uid 500); 12 Mar 2016 01:29:18 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 99613 invoked by uid 500); 12 Mar 2016 01:29:18 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 99604 invoked by uid 99); 12 Mar 2016 01:29:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Mar 2016 01:29:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E46BFDFD40; Sat, 12 Mar 2016 01:29:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rknoll@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cordova-plugin-file git commit: Fix test failure on WP 8.1 Date: Sat, 12 Mar 2016 01:29:17 +0000 (UTC) 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 Authored: Fri Mar 11 16:47:47 2016 -0800 Committer: Richard Knoll 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