cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] git commit: added documentation for manual tests
Date Tue, 19 Aug 2014 01:34:56 GMT
Repository: cordova-plugin-dialogs
Updated Branches:
  refs/heads/master 423ee171f -> 24c2665b8


added documentation for manual tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/80a7dae6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/80a7dae6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/80a7dae6

Branch: refs/heads/master
Commit: 80a7dae63b3fd881021eba09e74ff3b8a12e6e91
Parents: 1af76d8
Author: Edna Morales <ednamorales@ednas-mbp-2.raleigh.ibm.com>
Authored: Thu Jul 24 14:22:03 2014 -0400
Committer: Edna Morales <ednamorales@ednas-mbp-2.raleigh.ibm.com>
Committed: Thu Jul 24 14:22:03 2014 -0400

----------------------------------------------------------------------
 test/tests.js | 37 ++++++++++++++++++++++++++++---------
 1 file changed, 28 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/80a7dae6/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 99ddf6e..6e61b00 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -133,38 +133,57 @@ exports.defineManualTests = function (contentEl, createActionButton)
{
 
     /******************************************************************************/
 
+    var dialogs_tests = '<div id="beep"></div>' +
+        'Expected result: Device will beep (unless device is on silent). Nothing will get
updated in status box.' +
+        '<h2>Dialog Tests</h2>' +
+        '<h3>Dialog boxes will pop up for each of the following tests</h3>' +
+        '<p/> <div id="alert"></div>' +
+        'Expected result: Dialog will say "You pressed alert". Press continue to close dialog.
Nothing will get updated in status box.' +
+        '<p/> <div id="confirm_deprecated"></div>' +
+        'Expected result: Dialog will say "You pressed confirm". Press Yes, No, or Maybe
to close dialog. Status box will tell you what option you selected.' +
+        '<p/> <div id="confirm"></div>' +
+        'Expected result: Dialog will say "You pressed confirm". Press Yes, No, or Maybe,
Not Sure to close dialog. Status box will tell you what option you selected.' +
+        '<p/> <div id="prompt"></div>' +
+        'Expected result: Dialog will say "You pressed prompt". Enter any message and press
Yes, No, or Maybe, Not Sure to close dialog. Status box will tell you what option you selected
and message you entered.' +
+        '<p/> <div id="built_in_alert"></div>' +
+        'Expected result: Dialog will have title "index.html" and say "You pressed alert"
Press OK to close dialog. Nothing will get updated in status box.' +
+        '<p/> <div id="built_in_confirm"></div>' +
+        'Expected result: Dialog will have title "index.html" and say "You selected confirm".
Press Cancel or OK to close dialog. Nothing will get updated in status box.' +
+        '<p/> <div id="built_in_prompt"></div>' +
+        'Expected result: Dialog will have title "index.html" and say "This is a prompt".
"Default value" will be in text box. Press Cancel or OK to close dialog. Nothing will get
updated in status box.';
+
     contentEl.innerHTML = '<div id="info"></div>' +
-        '<div id="actions"></div>';
+        dialogs_tests;
 
     createActionButton('Beep', function () {
         beep();
-    }, 'actions');
+    }, 'beep');
 
     createActionButton('Alert Dialog', function () {
         alertDialog('You pressed alert.', 'Alert Dialog', 'Continue');
-    }, 'actions');
+    }, 'alert');
 
     createActionButton('Confirm Dialog - Deprecated', function () {
         confirmDialogA('You pressed confirm.', 'Confirm Dialog', 'Yes,No,Maybe');
-    }, 'actions');
+    }, 'confirm_deprecated');
 
     createActionButton('Confirm Dialog', function () {
         confirmDialogB('You pressed confirm.', 'Confirm Dialog', ['Yes', 'No', 'Maybe, Not
Sure']);
-    }, 'actions');
+    }, 'confirm');
 
     createActionButton('Prompt Dialog', function () {
         promptDialog('You pressed prompt.', 'Prompt Dialog', ['Yes', 'No', 'Maybe, Not Sure']);
-    }, 'actions');
+    }, 'prompt');
 
     createActionButton('Built-in Alert Dialog', function () {
         alert('You pressed alert');
-    }, 'actions');
+    }, 'built_in_alert');
 
     createActionButton('Built-in Confirm Dialog', function () {
         confirm('You selected confirm');
-    }, 'actions');
+    }, 'built_in_confirm');
 
     createActionButton('Built-in Prompt Dialog', function () {
         prompt('This is a prompt', 'Default value');
-    }, 'actions');
+    }, 'built_in_prompt');
 };


Mime
View raw message