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 2014/09/03 02:23:35 UTC

git commit: CB-7423 fix spec28, 29 lastProgressEvent not visible to afterEach function

Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 82ad25e2c -> 38d35c291


CB-7423 fix spec28,29 lastProgressEvent not visible to afterEach function


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/38d35c29
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/38d35c29
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/38d35c29

Branch: refs/heads/master
Commit: 38d35c291f74006f486f7c9fda67579b6a44ae6e
Parents: 82ad25e
Author: Edna Morales <ey...@us.ibm.com>
Authored: Tue Sep 2 17:07:35 2014 -0400
Committer: Edna Morales <ey...@us.ibm.com>
Committed: Tue Sep 2 17:07:35 2014 -0400

----------------------------------------------------------------------
 tests/tests.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/38d35c29/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 8d7d917..6377096 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -715,6 +715,7 @@ exports.defineAutoTests = function () {
              */
             var localFileName = "";
             var unsupportedWasCalled = false;
+            var lastProgressEvent = null;
             afterEach(function (done) {
                 if (!unsupportedWasCalled) {
                     console.log("Unsupported was not called");
@@ -731,7 +732,7 @@ exports.defineAutoTests = function () {
                 var remoteFile = server + "/robots.txt"
                 localFileName = remoteFile.substring(remoteFile.lastIndexOf('/') + 1);
                 var localURL = root.toURL() + "/" + localFileName;
-                var lastProgressEvent = null;
+                lastProgressEvent = null;
 
                 var downloadWin = function (entry) {
                     expect(entry.name).toBe(localFileName);
@@ -773,7 +774,7 @@ exports.defineAutoTests = function () {
                     unsupportedWasCalled = true;
                     done();
                 };
-                var lastProgressEvent = null;
+                lastProgressEvent = null;
 
                 var uploadWin = function (uploadResult) {
                     expect(uploadResult.bytesSent).toBeGreaterThan(0);