You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by dc...@apache.org on 2014/04/28 14:42:14 UTC
[41/50] couchdb commit: updated
refs/heads/2200-feature-support-erlang-17.0 to c81eb6d
Fauxton: test for globals
As a developer, I don't want to accidentally pollute the global
namespace and rely on global state.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/12485a00
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/12485a00
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/12485a00
Branch: refs/heads/2200-feature-support-erlang-17.0
Commit: 12485a0090fb212e4a6dc49435fe2c0ab07daa79
Parents: abeaf26
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Sun Apr 20 15:32:42 2014 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Thu Apr 24 20:32:08 2014 +0200
----------------------------------------------------------------------
src/fauxton/Gruntfile.js | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/12485a00/src/fauxton/Gruntfile.js
----------------------------------------------------------------------
diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js
index c650b9f..8ffb2f8 100644
--- a/src/fauxton/Gruntfile.js
+++ b/src/fauxton/Gruntfile.js
@@ -164,7 +164,39 @@ module.exports = function(grunt) {
options: {
scripturl: true,
evil: true,
- expr: true
+ expr: true,
+ undef: true,
+ globals: {
+ document: true,
+ window: true,
+ location: true,
+ alert: true,
+ console: true,
+ clearInterval: true,
+ setInterval: true,
+ setTimeout: true,
+ prompt: true,
+ confirm: true,
+
+ jQuery: true,
+ Backbone: true,
+ $: true,
+ _: true,
+ require: true,
+ module: true,
+ sinon: true,
+ it: true,
+ describe: true,
+ beforeEach: true,
+ afterEach: true,
+ before: true,
+ after: true,
+ define: true,
+
+ Spinner: true,
+ prettyPrint: true
+
+ }
}
},
@@ -242,7 +274,7 @@ module.exports = function(grunt) {
couchserver: couchserver_config,
watch: {
- js: {
+ js: {
files: helper.watchFiles(['.js'], ["./app/**/*.js", '!./app/load_addons.js',"./assets/**/*.js", "./test/**/*.js"]),
tasks: ['watchRun'],
},