You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/11/05 22:55:04 UTC
cordova-plugin-file-transfer git commit: CB-9906 cleanup duplicate
code, removed 2nd isWP8 declaration.
Repository: cordova-plugin-file-transfer
Updated Branches:
refs/heads/master 1e900148e -> 587e05122
CB-9906 cleanup duplicate code, removed 2nd isWP8 declaration.
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/587e0512
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/587e0512
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/587e0512
Branch: refs/heads/master
Commit: 587e05122593b7ff3c509e1f21369cae7f49cd99
Parents: 1e90014
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Nov 5 13:54:57 2015 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Nov 5 13:54:57 2015 -0800
----------------------------------------------------------------------
tests/tests.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/587e0512/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index f24edc7..4e3d08a 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -45,11 +45,8 @@ exports.defineAutoTests = function () {
// flags
var isWindows = cordova.platformId === 'windows8' || cordova.platformId === 'windows';
var isWP8 = cordova.platformId === 'windowsphone';
- var isIOS = cordova.platformId === 'ios';
-
var isBrowser = cordova.platformId === 'browser';
var isIE = isBrowser && navigator.userAgent.indexOf('Trident') >= 0;
- var isWp8 = cordova.platformId === "windowsphone";
describe('FileTransferError', function () {
@@ -177,9 +174,8 @@ exports.defineAutoTests = function () {
// In IE, when lengthComputable === false, event.total somehow is equal to 2^64
if (isIE) {
expect(event.total).toBe(Math.pow(2, 64));
- } else if (isIOS) {
- expect(event.total).toBe(-1);
} else {
+ // iOS returns -1, and other platforms return 0
expect(event.total).toBeLessThan(1);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org