You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2015/02/24 07:59:23 UTC
fauxton commit: updated refs/heads/master to 66b98b3
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 865973ff4 -> 66b98b3c8
Remove FilterViewSpec.js
This is breaking the tests as the FilterView is now a React component with
different tests.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/66b98b3c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/66b98b3c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/66b98b3c
Branch: refs/heads/master
Commit: 66b98b3c83cd2f8011da7e028f3cc90e82be09e2
Parents: 865973f
Author: Garren Smith <ga...@gmail.com>
Authored: Tue Feb 24 08:58:38 2015 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Tue Feb 24 08:58:38 2015 +0200
----------------------------------------------------------------------
app/addons/fauxton/tests/filterViewSpec.js | 81 -------------------------
1 file changed, 81 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/66b98b3c/app/addons/fauxton/tests/filterViewSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/tests/filterViewSpec.js b/app/addons/fauxton/tests/filterViewSpec.js
deleted file mode 100644
index 8ed0548..0000000
--- a/app/addons/fauxton/tests/filterViewSpec.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// 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([
- 'app',
- 'addons/fauxton/components',
- 'testUtils',
- 'api'
-], function (app, Components, testUtils, FauxtonAPI) {
- var assert = testUtils.assert,
- ViewSandbox = testUtils.ViewSandbox;
-
- describe('FilterView', function () {
- var viewSandbox,
- filterView;
-
- if (!FauxtonAPI.router.triggerRouteEvent) {
- FauxtonAPI.router.triggerRouteEvent = function () {};
- }
-
- beforeEach(function (done) {
- filterView = new Components.FilterView({
- eventNamespace: 'mynamespace'
- });
-
- viewSandbox = new ViewSandbox();
- viewSandbox.renderView(filterView, done);
- });
-
- afterEach(function () {
- viewSandbox.remove();
- });
-
- it('should add filter markup', function () {
- filterView.$('[name="filter"]').val('i was a lonely filter');
- filterView.$('.js-filter-form').submit();
- filterView.$('[name="filter"]').val('i am a filter');
- filterView.$('.js-filter-form').submit();
- assert.equal(2, filterView.$('.js-remove-filter').length);
- });
-
- it('should remove filter markup', function () {
- filterView.$('[name="filter"]').val('i was a lonely filter');
- filterView.$('.js-filter-form').submit();
- filterView.$('[name="filter"]').val('i am a filter');
- filterView.$('.js-filter-form').submit();
-
- filterView.$('.js-remove-filter').click();
-
- assert.equal(0, filterView.$('.js-remove-filter').length);
- });
-
- it('should not add empty filters', function () {
- filterView.$('[name="filter"]').val('');
- filterView.$('.js-filter-form').submit();
- assert.equal(0, filterView.$('.js-remove-filter').length);
- });
-
- it('should not add tooltips by default', function () {
- assert.equal(0, filterView.$('.js-filter-tooltip').length);
- });
-
- it('should add tooltips when a text for it is defined', function () {
- filterView = new Components.FilterView({
- eventNamespace: 'mynamespace',
- tooltipText: 'ente ente'
- });
- viewSandbox.renderView(filterView);
- assert.equal(1, filterView.$('.js-filter-tooltip').length);
- });
- });
-});