mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
CB-9493 Fix file paths in file-transfer manual tests
Also changes toNativeURL -> toURL because of deprecation
This commit is contained in:
+4
-4
@@ -966,11 +966,11 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
||||
file_transfer_tests;
|
||||
|
||||
createActionButton('Download and display img (cdvfile)', function () {
|
||||
downloadImg(imageURL, function (entry) { return entry.toURL(); }, new Image());
|
||||
downloadImg(imageURL, function (entry) { return entry.toInternalURL(); }, new Image());
|
||||
}, 'cdv_image');
|
||||
|
||||
createActionButton('Download and display img (native)', function () {
|
||||
downloadImg(imageURL, function (entry) { return entry.toNativeURL(); }, new Image());
|
||||
downloadImg(imageURL, function (entry) { return entry.toURL(); }, new Image());
|
||||
}, 'native_image');
|
||||
|
||||
createActionButton('Download to a non-existent dir (should work)', function () {
|
||||
@@ -980,12 +980,12 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
||||
createActionButton('Download and play video (cdvfile)', function () {
|
||||
var videoElement = document.createElement('video');
|
||||
videoElement.controls = "controls";
|
||||
downloadImg(videoURL, function (entry) { return entry.toURL(); }, videoElement);
|
||||
downloadImg(videoURL, function (entry) { return entry.toInternalURL(); }, videoElement);
|
||||
}, 'cdv_video');
|
||||
|
||||
createActionButton('Download and play video (native)', function () {
|
||||
var videoElement = document.createElement('video');
|
||||
videoElement.controls = "controls";
|
||||
downloadImg(videoURL, function (entry) { return entry.toNativeURL(); }, videoElement);
|
||||
downloadImg(videoURL, function (entry) { return entry.toURL(); }, videoElement);
|
||||
}, 'native_video');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user