Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CA7111D03 for ; Mon, 19 May 2014 16:30:58 +0000 (UTC) Received: (qmail 79684 invoked by uid 500); 19 May 2014 16:22:07 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 79428 invoked by uid 500); 19 May 2014 16:22:07 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 75899 invoked by uid 99); 19 May 2014 16:17:19 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 16:17:19 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 42B769878BF; Mon, 19 May 2014 16:17:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garren@apache.org To: commits@couchdb.apache.org Date: Mon, 19 May 2014 16:17:26 -0000 Message-Id: <00b256dd0aee41349b13e3fb2af648d2@git.apache.org> In-Reply-To: <49fb1b4064d446ba9720e079b49bbd01@git.apache.org> References: <49fb1b4064d446ba9720e079b49bbd01@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/47] couchdb commit: updated refs/heads/Update-Sidebar-Ui to c173e52 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/Update-Sidebar-Ui Commit: 12485a0090fb212e4a6dc49435fe2c0ab07daa79 Parents: abeaf26 Author: Robert Kowalski Authored: Sun Apr 20 15:32:42 2014 +0200 Committer: Robert Kowalski 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'], },