couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [02/50] [abbrv] git commit: updated refs/heads/1867-feature-plugins to 8aad450
Date Mon, 09 Sep 2013 09:53:22 GMT
fixing failing test


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/2560aeac
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/2560aeac
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/2560aeac

Branch: refs/heads/1867-feature-plugins
Commit: 2560aeac374bb64d6bb03421fcb242e80d4e5b21
Parents: 7c6998b
Author: Garren Smith <garren.smith@gmail.com>
Authored: Tue Aug 13 10:50:50 2013 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Mon Sep 9 11:16:41 2013 +0200

----------------------------------------------------------------------
 .gitignore                               |  1 +
 src/fauxton/test/core/routeObjectSpec.js | 15 +++++-
 src/fauxton/test/test.config.js          | 71 ---------------------------
 3 files changed, 14 insertions(+), 73 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2560aeac/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 31bed6a..6c67ab7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -123,3 +123,4 @@ test/javascript/run_js_tests.sh
 test/local.ini
 tmp
 utils/run
+src/fauxton/test/test.config.js

http://git-wip-us.apache.org/repos/asf/couchdb/blob/2560aeac/src/fauxton/test/core/routeObjectSpec.js
----------------------------------------------------------------------
diff --git a/src/fauxton/test/core/routeObjectSpec.js b/src/fauxton/test/core/routeObjectSpec.js
index 45d95ac..d043d63 100644
--- a/src/fauxton/test/core/routeObjectSpec.js
+++ b/src/fauxton/test/core/routeObjectSpec.js
@@ -1,3 +1,14 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
 define([
        'api',
       'testUtils'
@@ -65,7 +76,7 @@ define([
             getViewsSpy = sinon.stub(testRouteObject,"getViews"),
             viewSpy = sinon.stub(view, "establish");
         
-        sinon.stub(view, "hasRendered").returns(false);
+        view.hasRendered = false;
         getViewsSpy.returns({'#view': view});
 
         testRouteObject.renderWith('the-route', mockLayout, 'args');
@@ -77,7 +88,7 @@ define([
             getViewsSpy = sinon.stub(testRouteObject,"getViews"),
             viewSpy = sinon.stub(view, "establish");
         
-        sinon.stub(view, "hasRendered").returns(true);
+        view.hasRendered = true;
         getViewsSpy.returns({'#view': view});
 
         testRouteObject.renderWith('the-route', mockLayout, 'args');

http://git-wip-us.apache.org/repos/asf/couchdb/blob/2560aeac/src/fauxton/test/test.config.js
----------------------------------------------------------------------
diff --git a/src/fauxton/test/test.config.js b/src/fauxton/test/test.config.js
deleted file mode 100644
index f876bb3..0000000
--- a/src/fauxton/test/test.config.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// vim: set ft=javascript:
-// Set the require.js configuration for your test setup.
-require.config(
-{
-	"paths": {
-		"libs": "../assets/js/libs",
-		"plugins": "../assets/js/plugins",
-		"jquery": "../assets/js/libs/jquery",
-		"lodash": "../assets/js/libs/lodash",
-		"backbone": "../assets/js/libs/backbone",
-		"bootstrap": "../assets/js/libs/bootstrap",
-		"codemirror": "../assets/js/libs/codemirror",
-		"jshint": "../assets/js/libs/jshint",
-		"d3": "../assets/js/libs/d3",
-		"nv.d3": "../assets/js/libs/nv.d3",
-		"chai": "../test/mocha/chai",
-		"sinon-chai": "../test/mocha/sinon-chai",
-		"testUtils": "../test/mocha/testUtils"
-	},
-	"baseUrl": "../app",
-	"shim": {
-		"backbone": {
-			"deps": [
-				"lodash",
-				"jquery"
-			],
-			"exports": "Backbone"
-		},
-		"bootstrap": {
-			"deps": [
-				"jquery"
-			],
-			"exports": "Bootstrap"
-		},
-		"codemirror": {
-			"deps": [
-				"jquery"
-			],
-			"exports": "CodeMirror"
-		},
-		"jshint": {
-			"deps": [
-				"jquery"
-			],
-			"exports": "JSHINT"
-		},
-		"plugins/backbone.layoutmanager": [
-			"backbone"
-		],
-		"plugins/codemirror-javascript": [
-			"codemirror"
-		],
-		"plugins/prettify": [],
-		"plugins/jquery.form": [
-			"jquery"
-		]
-	}
-}
-);
-
-require([
-        
-           '.././test/core/routeObjectSpec.js',
-        
-           '.././app/addons/logs/tests/logSpec.js',
-        
-], function() {
-  if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
-  else { mocha.run(); }
-});
-


Mime
View raw message