CB-9493 Fix file paths in file-transfer manual tests

Also changes toNativeURL -> toURL because of deprecation
This commit is contained in:
daserge
2015-08-14 17:16:32 +03:00
parent dcc98db15f
commit 1c39fb547f
+4 -4
View File
@@ -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');
};