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/07/10 21:08:10 UTC
spec commit: Don't check the error type in the badUrl filetransfer
test.
Updated Branches:
refs/heads/master 39a6f2f96 -> 7cc276a25
Don't check the error type in the badUrl filetransfer test.
Just verify that the error callback is called.
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/7cc276a2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/7cc276a2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/7cc276a2
Branch: refs/heads/master
Commit: 7cc276a2549706fe95ca949278c7c3c6d9034bea
Parents: 39a6f2f
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Jul 10 15:07:15 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Jul 10 15:07:15 2013 -0400
----------------------------------------------------------------------
autotest/tests/filetransfer.tests.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/7cc276a2/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index 246321d..415d0b9 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -380,9 +380,7 @@ describe('FileTransfer', function() {
var remoteFile = server;
var badFilePath = "c:\\54321";
- var downloadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
- });
+ var downloadFail = jasmine.createSpy();
runs(function() {
var ft = new FileTransfer();