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 <agri...@chromium.org> Authored: Tue Oct 2 15:05:04 2012 -0400 Committer: Andrew Grieve <agri...@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) {