cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drk...@apache.org
Subject git commit: CB-5761 fix reported URL
Date Fri, 10 Jan 2014 16:00:53 GMT
Updated Branches:
  refs/heads/master b62413633 -> 8064d2ae8


CB-5761 fix reported URL


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

Branch: refs/heads/master
Commit: 8064d2ae81141d48d6a64b79b86f75eb58b0d4c8
Parents: b624136
Author: David Kemp <drkemp@chromium.org>
Authored: Fri Jan 10 10:59:56 2014 -0500
Committer: David Kemp <drkemp@chromium.org>
Committed: Fri Jan 10 10:59:56 2014 -0500

----------------------------------------------------------------------
 cordova-plugin-medic/www/jasmine-jsreporter.js | 8 +++++---
 cordova-plugin-medic/www/medic.js              | 5 +++--
 2 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/8064d2ae/cordova-plugin-medic/www/jasmine-jsreporter.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-medic/www/jasmine-jsreporter.js b/cordova-plugin-medic/www/jasmine-jsreporter.js
index adee25e..2b8b24e 100644
--- a/cordova-plugin-medic/www/jasmine-jsreporter.js
+++ b/cordova-plugin-medic/www/jasmine-jsreporter.js
@@ -62,8 +62,9 @@ limitations under the License.
         'iphone':'ios'
     };
 
-    var JSReporter =  function (server,sha) {
+    var JSReporter =  function (server, serverext, sha) {
         this.server = server;
+        this.serverext = serverext;
         this.sha = sha;
     };
 
@@ -127,7 +128,8 @@ limitations under the License.
             var doc_id = [ this.sha, json.version, json.model].map(encodeURIComponent).join('__');
             // TODO: expose the db in this url for customization
             var doc_url = this.server + '/mobilespec_results/' + doc_id;
-            console.log('Test Results URL = '+doc_url+' <<<end test result>>>');

+            var doc_urlext = this.serverext + '/mobilespec_results/' + doc_id;
+            console.log('Test Results URL = '+doc_urlext+' <<<end test result>>>');

             xhr.open("PUT", doc_url, true);
             xhr.onreadystatechange=function() {
                 console.log('onreadystatechange');
@@ -209,4 +211,4 @@ limitations under the License.
 
     // export public
     jasmine.JSReporter = JSReporter;
-})();
\ No newline at end of file
+})();

http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/8064d2ae/cordova-plugin-medic/www/medic.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-medic/www/medic.js b/cordova-plugin-medic/www/medic.js
index 01b22e4..e4620c5 100644
--- a/cordova-plugin-medic/www/medic.js
+++ b/cordova-plugin-medic/www/medic.js
@@ -40,7 +40,8 @@ function Medic() {
        var cfg = JSON.parse(xhr.responseText);
        medic_this.sha = cfg.sha;
        medic_this.couchdb = cfg.couchdb;
-       console.log('Loaded Medic Config: sha='+medic_this.sha+',couchdb='+medic_this.couchdb);
+       medic_this.couchdbext = cfg.couchdbext;
+       console.log('Loaded Medic Config: sha='+medic_this.sha+',couchdb='+medic_this.couchdb+',couchdbext='+medic_this.couchdbext);
     }
     xhr.send();
 }
@@ -52,7 +53,7 @@ Medic.prototype.getJSReporter = function() {
 
     if(!window.jasmine) console.log('[ERROR] jasmine not installed.');
     if(!window.jasmine.JSReporter) console.log('[ERROR] jasmine reporter not installed.');
-    return new window.jasmine.JSReporter( this.couchdb,this.sha );
+    return new window.jasmine.JSReporter( this.couchdb, this.couchdbext, this.sha );
 };
 
 module.exports = new Medic();


Mime
View raw message