incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/2] js commit: commented some of the voodoo for testing, added explanation for running individual tests
Date Tue, 10 Jul 2012 17:31:13 GMT
commented some of the voodoo for testing, added explanation for running individual tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/3c533e0d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/3c533e0d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/3c533e0d

Branch: refs/heads/master
Commit: 3c533e0dbf8fe2db5f8b900b0e6a3cc27a9b0c49
Parents: ec1cc3e
Author: purplecabbage <purplecabbage@gmail.com>
Authored: Mon Jul 9 14:48:23 2012 -0700
Committer: purplecabbage <purplecabbage@gmail.com>
Committed: Mon Jul 9 14:48:23 2012 -0700

----------------------------------------------------------------------
 test/runner.js  |    2 +-
 test/suite.html |    7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3c533e0d/test/runner.js
----------------------------------------------------------------------
diff --git a/test/runner.js b/test/runner.js
index eaf15ab..4f05263 100644
--- a/test/runner.js
+++ b/test/runner.js
@@ -97,7 +97,7 @@ module.exports = {
                                 '" type="text/javascript" charset="utf-8"></script>';
                         }).join('');
                         modules = packager.bundle('test'); 
-                        doc = html.replace(/<!-- TESTS -->/g, specs).replace(/"##MODULES##"/g,
modules);
+                        doc = html.replace(/<!-- ##TESTS## -->/g, specs).replace(/"##MODULES##"/g,
modules);
                         res.end(doc);
                     });
                 })

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3c533e0d/test/suite.html
----------------------------------------------------------------------
diff --git a/test/suite.html b/test/suite.html
index 0e8e58b..ab45b07 100644
--- a/test/suite.html
+++ b/test/suite.html
@@ -39,7 +39,12 @@
       var require = cordova.require;
   </script>
 
-  <!-- TESTS -->
+	<!-- ##TESTS## -->
+	
+	<!-- Note: if you want to run individual tests, remove the tests placeholder above and
include the individual tests yourself -->
+	
+	<!-- <script src="test.accelerometer.js" type="text/javascript" charset="utf-8"></script>
-->
+
 </head>
 
 <body>


Mime
View raw message