You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/08/19 03:41:11 UTC

[2/5] git commit: added documentation to manual tests

added documentation to manual tests


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/683a0fac
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/683a0fac
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/683a0fac

Branch: refs/heads/master
Commit: 683a0facefa7586f1c10a77124f67b8dd27ac261
Parents: 91a67f8
Author: Edna Morales <ed...@ednas-mbp-2.raleigh.ibm.com>
Authored: Thu Jul 24 14:48:35 2014 -0400
Committer: Edna Morales <ed...@ednas-mbp-2.raleigh.ibm.com>
Committed: Thu Jul 24 14:48:35 2014 -0400

----------------------------------------------------------------------
 test/tests.js | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/683a0fac/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index ceb2b9b..6f6539c 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -951,26 +951,35 @@ exports.defineManualTests = function (contentEl, createActionButton) {
 
     /******************************************************************************/
 
+    var file_transfer_tests = '<h2>Image File Transfer Tests</h2>' +
+        '<h3>The following tests should display an image of the Apache feather in the status box</h3>' +
+        '<div id="cdv_image"></div>' +
+        '<div id="native_image"></div>' +
+        '<h2>Video File Transfer Tests</h2>' +
+        '<h3>The following tests should display a video in the status box. The video should play when play is pressed</h3>' +
+        '<div id="cdv_video"></div>' +
+        '<div id="native_video"></div>';
+
     contentEl.innerHTML = '<div id="info"></div>' +
-        '<div id="actions"></div>';
+        file_transfer_tests;
 
     createActionButton('Download and display img (cdvfile)', function () {
         downloadImg(imageURL, function (entry) { return entry.toURL(); }, new Image());
-    }, 'actions');
+    }, 'cdv_image');
 
     createActionButton('Download and display img (native)', function () {
         downloadImg(imageURL, function (entry) { return entry.toNativeURL(); }, new Image);
-    }, 'actions');
+    }, 'native_image');
 
     createActionButton('Download and play video (cdvfile)', function () {
         var videoElement = document.createElement('video');
         videoElement.controls = "controls";
         downloadImg(videoURL, function (entry) { return entry.toURL(); }, videoElement);
-    }, 'actions');
+    }, '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)
-    }, 'actions');
+    }, 'native_video');
 };