You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/09/05 19:59:10 UTC
[4/6] git commit: added documentation for manual tests
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/c1d79099
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/c1d79099
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/c1d79099
Branch: refs/heads/master
Commit: c1d79099d91561130f7bc9a1880d7634d73dc54d
Parents: e483ccc
Author: Edna Morales <ed...@ednas-mbp-2.raleigh.ibm.com>
Authored: Thu Jul 24 13:42:36 2014 -0400
Committer: Anis Kadri <an...@apache.org>
Committed: Fri Sep 5 10:58:56 2014 -0700
----------------------------------------------------------------------
test/tests.js | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/c1d79099/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');
};