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 C250017260 for ; Tue, 24 Feb 2015 06:59:23 +0000 (UTC) Received: (qmail 45144 invoked by uid 500); 24 Feb 2015 06:59:23 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 45092 invoked by uid 500); 24 Feb 2015 06:59:23 -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 45083 invoked by uid 99); 24 Feb 2015 06:59:23 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2015 06:59:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 732C7E03FA; Tue, 24 Feb 2015 06:59:23 +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 Message-Id: <148343c97e0846eaa0f62eddbc1c6515@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: fauxton commit: updated refs/heads/master to 66b98b3 Date: Tue, 24 Feb 2015 06:59:23 +0000 (UTC) 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 Authored: Tue Feb 24 08:58:38 2015 +0200 Committer: Garren Smith 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); - }); - }); -});