cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [04/12] spec commit: [CB-1517] Add an assertion that progress.total < progress.loaded
Date Tue, 02 Apr 2013 15:44:36 GMT
[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/2.6.x
Commit: 2003ff79a9128ea6473059a753eb1ae5bc64d0b4
Parents: da89eaa
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Mar 27 16:59:18 2013 -0400
Committer: Andrew Grieve <agrieve@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');
            });
 


Mime
View raw message