Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master dcc98db15 -> 1c39fb547


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

Also changes toNativeURL -> toURL because of deprecation


Project: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/1c39fb54
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/1c39fb54
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/1c39fb54

Branch: refs/heads/master
Commit: 1c39fb547f9d111a62965793667535847c37478f
Parents: dcc98db
Author: daserge <[email protected]>
Authored: Fri Aug 14 17:16:32 2015 +0300
Committer: daserge <[email protected]>
Committed: Fri Aug 14 17:16:32 2015 +0300

----------------------------------------------------------------------
 tests/tests.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/1c39fb54/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index c56c4f9..e5b9ce0 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -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');
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to