cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/3] git commit: added documentation for manual tests
Date Tue, 19 Aug 2014 01:12:23 GMT
added documentation for manual tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/28873828
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/28873828
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/28873828

Branch: refs/heads/master
Commit: 288738286d408e98d0c49889ef8f416d8d2e36ea
Parents: 5afe44d
Author: Edna Morales <ednamorales@ednas-mbp-2.raleigh.ibm.com>
Authored: Thu Jul 24 13:42:36 2014 -0400
Committer: Edna Morales <ednamorales@ednas-mbp-2.raleigh.ibm.com>
Committed: Thu Jul 24 13:42:36 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/28873828/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 50f97d9..54b529a 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -215,22 +215,30 @@ exports.defineManualTests = function (contentEl, createActionButton)
{
 
     /******************************************************************************/
 
+    var orientation_tests = '<h3>iOS devices may bring up a calibration screen when
initiating these tests</h3>' +
+        '<div id="getCompass"></div>' +
+        'Expected result: Will update the status box with current heading. Status will read
"Stopped"' +
+        '<p/> <div id="watchCompass"></div>' +
+        'Expected result: When pressed, will start a watch on the compass and update the
heading value when heading reading changes. Status will read "Running"' +
+        '<p/> <div id="stopCompass"></div>' +
+        'Expected result: Will clear the compass watch, so heading value will no longer be
updated. Status will read "Stopped"';
+
     contentEl.innerHTML = '<div id="info"><b>Status: </b>' +
         '<span id="compass_status">Stopped</span>' +
         '<table width="100%"><tr>' +
         '<td width="33%">Heading: <span id="compassHeading"></span>' +
         '</td></tr></table></div>' +
-        '<div id="actions"></div>';
+        orientation_tests;
 
     createActionButton('Get Compass', function () {
         getCompass();
-    }, 'actions');
+    }, 'getCompass');
 
     createActionButton('Start Watching Compass', function () {
         watchCompass();
-    }, 'actions');
+    }, 'watchCompass');
 
     createActionButton('Stop Watching Compass', function () {
         stopCompass();
-    }, 'actions');
+    }, 'stopCompass');
 };


Mime
View raw message