incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject spec commit: Test that FileTransfer.upload's response looks correct.
Date Tue, 02 Oct 2012 19:05:33 GMT
Updated Branches:
  refs/heads/master 79dc8f3d1 -> b3578063f


Test that FileTransfer.upload's response looks correct.


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

Branch: refs/heads/master
Commit: b3578063f75d3261e242a482280619f6cd6f6b4b
Parents: 79dc8f3
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Oct 2 15:05:04 2012 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Oct 2 15:05:04 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/b3578063/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index 610bf42..8c1cd35 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -272,7 +272,7 @@ describe('FileTransfer', function() {
             var uploadWin = jasmine.createSpy().andCallFake(function(uploadResult) {
                 expect(uploadResult.bytesSent).toBeGreaterThan(0);
                 expect(uploadResult.responseCode).toBe(200);
-                expect(uploadResult.response).toBeDefined();
+                expect(uploadResult.response).toMatch(/fields:\s*{\s*value1.*/);
             });
 
             var fileWin = function(fileEntry) {


Mime
View raw message