You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/10/01 16:09:14 UTC
[2/2] spec commit: [CB-4898] Prepare for Medic plugin
[CB-4898] Prepare for Medic plugin
Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/de23e302
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/de23e302
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/de23e302
Branch: refs/heads/master
Commit: de23e302daefcfac603fc992e41467d43ae40d87
Parents: 06262fa
Author: David Kemp <dr...@chromium.org>
Authored: Mon Sep 30 15:15:16 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Oct 1 10:09:05 2013 -0400
----------------------------------------------------------------------
autotest/pages/all.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/de23e302/autotest/pages/all.html
----------------------------------------------------------------------
diff --git a/autotest/pages/all.html b/autotest/pages/all.html
index 0cb962f..ef656bc 100644
--- a/autotest/pages/all.html
+++ b/autotest/pages/all.html
@@ -85,9 +85,15 @@
jasmineEnv.updateInterval = 1000;
var htmlReporter = new jasmine.HtmlReporter();
-
jasmineEnv.addReporter(htmlReporter);
+ // the following will only be defined if the Medic plugin is loaded
+ if('medic' in window) {
+ if( medic.isEnabled() ) {
+ jasmineEnv.addReporter(medic.getJSReporter());
+ }
+ }
+
jasmineEnv.specFilter = function(spec) {
return htmlReporter.specFilter(spec);
};