cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [2/4] git commit: Chaning API for adding manual tests
Date Fri, 13 Dec 2013 16:02:43 GMT
Chaning API for adding manual tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/c2ccde64
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/c2ccde64
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/c2ccde64

Branch: refs/heads/cdvtest
Commit: c2ccde6471853416a7bdc09d00b9bfc02a301b8d
Parents: 78337f6
Author: Michal Mocny <mmocny@gmail.com>
Authored: Fri Nov 1 14:18:11 2013 -0400
Committer: Michal Mocny <mmocny@gmail.com>
Committed: Fri Nov 8 14:19:44 2013 -0500

----------------------------------------------------------------------
 cordova-plugin-test-framework/www/test.js | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/c2ccde64/cordova-plugin-test-framework/www/test.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/test.js b/cordova-plugin-test-framework/www/test.js
index fcb1eba..56bc407 100644
--- a/cordova-plugin-test-framework/www/test.js
+++ b/cordova-plugin-test-framework/www/test.js
@@ -146,8 +146,18 @@ exports.initForManualTests = function() {
 
 /******************************************************************************/
 
-exports.addManualTest = function(title, handler) {
-  createActionButtonFn(title, handler);
+exports.addManualTestFn = function(title, fn) {
+  createActionButtonFn(title, fn);
+};
+
+/******************************************************************************/
+
+exports.addManualTestPage = function(title, url) {
+  createActionButtonFn(title, function() {
+    // TODO: This should probably have a way to get back.
+    // Perhaps open the page in a frame?
+    window.href = url;
+  });
 };
 
 /******************************************************************************/


Mime
View raw message