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

[1/2] git commit: Implement unwrapConsole, to show line numbers when using remote inspector

Repository: cordova-plugin-test-framework
Updated Branches:
  refs/heads/master 31c26e15a -> b73c9bdbb


Implement unwrapConsole, to show line numbers when using remote inspector


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/commit/e1dc65cc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/tree/e1dc65cc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/diff/e1dc65cc

Branch: refs/heads/master
Commit: e1dc65cc8b1a270e07f8d1dbbb08692204d187e4
Parents: 31c26e1
Author: Michal Mocny <mm...@gmail.com>
Authored: Wed Aug 6 16:00:20 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Wed Aug 6 16:00:20 2014 -0400

----------------------------------------------------------------------
 www/main.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/e1dc65cc/www/main.js
----------------------------------------------------------------------
diff --git a/www/main.js b/www/main.js
index 365a811..5838b25 100644
--- a/www/main.js
+++ b/www/main.js
@@ -93,9 +93,9 @@ function attachEvents() {
 
 /******************************************************************************/
 
-function wrapConsole() {
-  var origConsole = window.console;
+var origConsole = window.console;
 
+exports.wrapConsole = function() {
   function appendToOnscreenLog(type, args) {
     var el = document.getElementById('log--content');
     var div = document.createElement('div');
@@ -125,7 +125,11 @@ function wrapConsole() {
     warn: createCustomLogger('warn'),
     error: createCustomLogger('error'),
   }
-}
+};
+
+exports.unwrapConsole = function() {
+  window.console = origConsole;
+};
 
 /******************************************************************************/
 
@@ -204,7 +208,7 @@ exports.init = function() {
   // ...Or find a custom way to print line numbers using stack or something.
   // make sure to always wrap when using medic.
   attachEvents();
-  wrapConsole();
+  exports.wrapConsole();
 
   var medic = require('org.apache.cordova.test-framework.medic');
   medic.load(function() {


[2/2] git commit: Replace ?showBack with #?showBack for wp8

Posted by mm...@apache.org.
Replace ?showBack with #?showBack for wp8


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/commit/b73c9bdb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/tree/b73c9bdb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/diff/b73c9bdb

Branch: refs/heads/master
Commit: b73c9bdbb3f7afc5f482dbc87798bb28c722085c
Parents: e1dc65c
Author: Michal Mocny <mm...@gmail.com>
Authored: Wed Aug 6 16:01:27 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Wed Aug 6 16:01:27 2014 -0400

----------------------------------------------------------------------
 www/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/b73c9bdb/www/main.js
----------------------------------------------------------------------
diff --git a/www/main.js b/www/main.js
index 5838b25..7e37e53 100644
--- a/www/main.js
+++ b/www/main.js
@@ -194,7 +194,7 @@ function runMain() {
   createActionButton('Auto Tests', setMode.bind(null, 'auto'));
   createActionButton('Manual Tests', setMode.bind(null, 'manual'));
   createActionButton('Reset App', location.reload.bind(location));
-  if (/showBack/.exec(location.search)) {
+  if (/showBack/.exec(location.hash)) {
       createActionButton('Back', function() {
           history.go(-1);
       });