aboutsummaryrefslogtreecommitdiffstats
path: root/docs/specs.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-04 14:24:31 -0700
committerMisko Hevery2010-11-04 14:24:31 -0700
commit47066e70e1621ff74bd2cd6b5853ca3c5841aba6 (patch)
tree5a653300650aad0a4f1d8a88c0998edc7ebfe1fe /docs/specs.js
parentc0d30aedfca89fee2e1fc3b0b2fc1e7bfcb008b1 (diff)
downloadangular.js-47066e70e1621ff74bd2cd6b5853ca3c5841aba6.tar.bz2
added documentation for ng:include and ng:widget and test for doc collector.
Diffstat (limited to 'docs/specs.js')
-rw-r--r--docs/specs.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/specs.js b/docs/specs.js
new file mode 100644
index 00000000..5f1cd153
--- /dev/null
+++ b/docs/specs.js
@@ -0,0 +1,21 @@
+require.paths.push("./lib");
+var jasmine = require('jasmine-1.0.1');
+var sys = require('sys');
+
+for(var key in jasmine) {
+ global[key] = jasmine[key];
+}
+
+var isVerbose = false;
+var showColors = true;
+process.argv.forEach(function(arg){
+ switch(arg) {
+ case '--color': showColors = true; break;
+ case '--noColor': showColors = false; break;
+ case '--verbose': isVerbose = true; break;
+ }
+});
+
+jasmine.executeSpecsInFolder(__dirname + '/spec', function(runner, log){
+ process.exit(runner.results().failedCount);
+}, isVerbose, showColors); \ No newline at end of file