You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/03/27 22:00:10 UTC

spec commit: [CB-1517] Add an assertion that progress.total < progress.loaded

Updated Branches:
  refs/heads/master da89eaacf -> 2003ff79a


[CB-1517] Add an assertion that progress.total < progress.loaded


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/2003ff79
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/2003ff79
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/2003ff79

Branch: refs/heads/master
Commit: 2003ff79a9128ea6473059a753eb1ae5bc64d0b4
Parents: da89eaa
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Mar 27 16:59:18 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Mar 27 16:59:18 2013 -0400

----------------------------------------------------------------------
 autotest/tests/filetransfer.tests.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/2003ff79/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index df1aebd..bdc83d9 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -400,6 +400,7 @@ describe('FileTransfer', function() {
            var downloadWin = jasmine.createSpy().andCallFake(function(entry) {
                expect(entry.name).toBe(localFileName);
                expect(lastProgressEvent.loaded).toBeGreaterThan(1, 'loaded');
+               expect(lastProgressEvent.total).not.toBeLessThan(lastProgressEvent.loaded);
                expect(lastProgressEvent.lengthComputable).toBe(true, 'lengthComputable');
            });