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 0672110A4D for ; Sun, 9 Nov 2014 15:41:52 +0000 (UTC) Received: (qmail 32325 invoked by uid 500); 9 Nov 2014 15:41:51 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 32267 invoked by uid 500); 9 Nov 2014 15:41:51 -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 32254 invoked by uid 99); 9 Nov 2014 15:41:51 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2014 15:41:51 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8922F8BE0C3; Sun, 9 Nov 2014 15:41:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: robertkowalski@apache.org To: commits@couchdb.apache.org Date: Sun, 09 Nov 2014 15:41:51 -0000 Message-Id: <497d4f3f3de64ee3aacdd18832af05d2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] jquery-couch commit: updated refs/heads/master to 102e663 Repository: couchdb-jquery-couch Updated Branches: refs/heads/master dac654b0e -> 102e663aa Port old JS Spec tests to Mocha Changes that happened to jquery.couch.js which were not reflected by the current failing JSpec Testsuite and required changes to the testuite: - jquery.couch returns the time for the request and not an object with an url property - jquery.couch does not show alerts any more - success callbacks don't return a status any more - db.copyDoc expects an docid as target in the first option object, not a third parameter with an `Destination` property COUCHDB-1566 Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/747ec0f8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/747ec0f8 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/747ec0f8 Branch: refs/heads/master Commit: 747ec0f8dcd685d6b4fa7ef1687b7f571a5a0284 Parents: dac654b Author: Robert Kowalski Authored: Sun Nov 9 16:05:44 2014 +0100 Committer: Robert Kowalski Committed: Sun Nov 9 16:41:00 2014 +0100 ---------------------------------------------------------------------- README.md | 9 +- test/runner.html | 3 + test/test.js | 2 +- test/test_spec_1.js | 258 +++++++++++++++++++ test/test_spec_2.js | 478 ++++++++++++++++++++++++++++++++++++ test/test_spec_3.js | 626 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1374 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/747ec0f8/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 3403e2d..5fae08e 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,11 @@ Install the dependencies: $ bower install ``` -Open `test/runner.html` in a browser to run the testsuite. +Enable CORS: + +``` +curl -X PUT http://localhost:5984/_config/httpd/enable_cors -d '"true"' +curl -X PUT http://localhost:5984/_config/cors/origins -d '"*"' +``` + +Restart CouchDB & open `test/runner.html` in a browser to run the testsuite. http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/747ec0f8/test/runner.html ---------------------------------------------------------------------- diff --git a/test/runner.html b/test/runner.html index 3512877..da5766e 100644 --- a/test/runner.html +++ b/test/runner.html @@ -32,6 +32,9 @@ specific language governing permissions and limitations under the License. + + +