Commit Graph

62 Commits

Author SHA1 Message Date
Tim Brust 46666ee89c fix!: remove deprecated platforms (#270) 2020-08-31 14:02:08 +00:00
Alexander Sorokin 295f742ae8 (tests): Fixed tests' flakiness by increasing the timeouts 2017-05-31 10:23:27 +03:00
filmaj 84d7f482ce (tests): Add additional logging about cases where file transfer server URL cannot be determined via XHR due to wkwebview-engine plugin limitations. 2017-04-28 12:49:18 -07:00
Nikita Matrosov e9d93c0a54 CB-10696 iOS: Encode target path with spaces 2017-04-06 16:27:07 +03:00
Alexander Sorokin 70961b36fc CB-12439 (Tests) Re-enable the tests
* This is a part of file transfer CI builds being transferred to Sauce Labs emulators
* Some tests now retry up to 100 times due to Heroku server being unstable
* Now using '/upload_headers_echo' of the FT server instead of whatheaders.com which is down
2017-02-22 12:17:34 +03:00
Alexander Sorokin 93ccb4974f CB-12439 (Tests) Temporarily disable tests that use fileserver on CI 2017-02-09 13:28:23 +03:00
daserge 5a711e8722 CB-12154 file-transfer progressEvent.total = -1 on iOS
Makes chunkedMode=true uploads to contain Content-Length to make progress computable
2016-12-06 17:06:00 +03:00
junweifu 9b322dec67 Don't crash on low memory devices
It will be OOM when running file-transfer tests on baseline Android Memory class
which is 16M (It happens to be the java heap limit of those devices).

 This closes #166
2016-11-07 11:05:28 -08:00
Alexander Sorokin ac5233d349 CB-11959 Fixed the jshint issues 2016-10-31 11:08:34 +03:00
Alexander Sorokin ebf280b531 CB-11959 Increased the array length for ios and winstore even more 2016-10-05 18:08:29 +03:00
Alexander Sorokin 709fd057f2 CB-11959 Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server 2016-10-05 15:26:56 +03:00
Alexander Sorokin e68f766639 CB-11926 Tests can use local server 2016-10-04 22:40:39 +03:00
Vladimir Kotikov 855def11c3 CB-11497 Use cordova-vm for testing 304 errors 2016-07-07 14:39:30 +03:00
daserge 9347606dd3 CB-10974 Cordova file transfer Content-Length header problem
Fixed iOS logic to not to include Content-Length when chunkedMode=true
Fixed Android logic preventing chunkedMode to be enabled for http uploads
Added tests for chunkedMode
Documented chunkedMode not supported on Windows
Documented Uploading of an empty file is not supported for chunkedMode=true and multipart=false for iOS, pended the corresponding test
2016-05-17 12:24:27 +03:00
Richard Knoll b66cb2ec6a CB-10536: Removing flaky test assertions about abort callback latency
This closes #137
2016-04-05 12:05:55 -07:00
Sarangan Rajamanickam c48fc02d7e Removing the expectation in spec.34 for the transfer method to be called. 2016-03-30 13:15:47 -07:00
daserge 2b8c1a6101 CB-10978 Fix file-transfer.tests JSHint issues 2016-03-29 08:57:57 +03:00
Sarangan Rajamanickam ca6593703e CB-10782: Occasional failure in file transfer tests causing mobilespec crash
This closes #132
2016-03-28 15:18:48 -07:00
daserge 182b0c5ebe CB-9837 Add data URI support to file-transfer upload on iOS
Adds iOS and Windows implementation; mention in the docs
Adds corresponding tests
Increases spec.35 timeout for Windows Phone 8.1 case as it contains 2 download operations
2015-12-14 16:58:18 +03:00
daserge 866349eb84 CB-9840 Fallback file-transfer uploadResponse encoding to latin1 in case not encoded with UTF-8 on iOS
Adds correspoding tests for download and upload response

Github: close #71
2015-12-04 15:04:40 +03:00
daserge a762f3fe58 CB-8641 (Windows Phone 8.1) Some file-transfer plugin tests occasionally fail in mobilespec
Increases timeout for Windows case for spec.10, spec.21 (abort right away), spec.15 (unknown host)
Documents the latency quirk caused by BackgroundDownloader usage
[Windows] Mark an upload aborted to be cancelled right away as it did not have enough time to be created when abort was called in filetransfer.spec.21 (so that unexpected httpWin fired)
Extended test buffer to avoid unexpectedCallbacks.httpWin on Windows & local test server (filetransfer.spec.21)
2015-12-04 09:57:37 +03:00
Dmitry Blotsky 0913325be5 Adding linting and fixing linter warnings. Reducing timeouts to 7 seconds. 2015-12-02 19:20:44 -08:00
daserge 73223a7d45 CB-7006 Empty file is created on file transfer if server response is 304
Adds a corresponding test.
Fixes the Windows proxy to not to delete the existing file in case of a download error (including 304) - a temporary file is deleted instead.
2015-11-30 19:27:25 +03:00
daserge 416be7633b CB-10098 filetransfer.spec.33 is faulty 2015-11-30 14:43:25 +03:00
Shazron Abdullah 3ae73a2879 CB-10088 - filetransfer spec.10 and spec.11 test is faulty 2015-11-26 13:45:30 -08:00
daserge c97f544ef8 CB-9969 Filetransfer upload error deletes original file
Adds corresponding test and fixes for iOS and Windows
Also fixes filetransfer.spec.9, which used an incorrect path in the root.getFile call.
2015-11-26 23:07:04 +03:00
daserge b7c500e1eb CB-10086 There are two spec.31 tests for file-transfer tests 2015-11-26 10:11:50 +03:00
daserge 887c91750a CB-10037 Add progress indicator to file-transfer manual tests 2015-11-25 20:10:59 +03:00
daserge 007f98692b CB-9563 Mulptipart form data is used even a header named Content-Type is present
Adds non-multipart implementation for Windows and a corresponding test
Adds a fix for Android for uploadResult.bytesSent = 0 for small files
Fixes parameters of FILE_NOT_FOUND_ERR case in upload operation on Windows - passing source file name instead of duplicated server/destination argument

github: close #117
2015-11-25 19:57:48 +03:00
daserge 189942284a CB-6928 Wrong behaviour transferring cacheable content
Adds support of 304 handling for iOS, Windows and adds a corresponding test
2015-11-11 09:46:17 +03:00
daserge 5857384b94 CB-51 API: FileTransfer - Support PUT Method
Adds a test for upload via PUT method
Adds support for Windows platform
2015-11-11 09:28:21 +03:00
Jesse MacFadyen 587e051225 CB-9906 cleanup duplicate code, removed 2nd isWP8 declaration. 2015-11-05 13:54:57 -08:00
daserge 1e900148e6 CB-9950 Unpend Filetransfer spec.27 on wp8 as custom headers are now supported 2015-11-04 17:47:26 +03:00
Jesse MacFadyen 066acb33af Merge branch 'CB-9906' 2015-11-03 22:17:28 -08:00
Jesse MacFadyen c5d92726c2 filetransfer.spec.6 was failing in 4.x branch of iOS because -1 was returned. 2015-11-03 22:14:55 -08:00
Alexander Sorokin 4dc697a863 CB-9843 Added wp8 quirk to test spec 12
github: close #106
2015-10-27 20:32:04 +03:00
Alexander Sorokin 869eea41ec CB-9673 Fixed test spec.6 failure on iOS
github: close #102
2015-10-16 10:15:01 +03:00
daserge 83ee62514a CB-9385 Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS
Added a corresponding test case
2015-10-15 19:17:27 +03:00
Alexander Sorokin 1142a96b2c CB-9791 Decreased download and upload tests timeout 2015-10-13 15:41:41 +03:00
Steve Gill cebdae3a40 updated tests to use cordova apache vm 2015-08-19 23:33:49 -07:00
daserge 1c39fb547f CB-9493 Fix file paths in file-transfer manual tests
Also changes toNativeURL -> toURL because of deprecation
2015-08-14 17:16:32 +03:00
daserge 499ec5c07b CB-9376 Fix FileTransfer plugin manual tests issue - 'undefined' in paths 2015-07-16 15:40:44 +03:00
Nikhil Khandelwal 428d791f55 Remove verbose console log messages 2015-05-12 15:16:54 -07:00
alsorokin cd7eb26c7a CB-8933 Increased download and upload test timeout 2015-04-30 14:15:35 +03:00
alsorokin 8e22d5a6b0 CB-8641 Fixed tests to pass on windows and wp8 2015-04-08 13:09:12 +03:00
alsorokin c772257a85 CB-8495 Fixed wp8 and wp81 test failures 2015-02-18 17:02:40 +03:00
Vladimir Kotikov bb0ed704a8 CB-7957 Adds support for browser platform 2015-02-11 17:46:01 -08:00
Vladimir Kotikov 837771c4c6 CB-8095 Fixes JSHint and formatting issues 2015-02-11 17:46:00 -08:00
Vladimir Kotikov 320f0d4173 CB-8095 Updates tests and documentation 2015-02-11 17:46:00 -08:00
Ian Clelland 2bfbd2c782 CB-8125: Fix spec tests 28 and 29
These tests had long been failing (silently). The refactor for CB-8125
surfaced those failures, and so this fixes them.
2014-12-17 11:08:46 -05:00