Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 795539170 for ; Thu, 23 Feb 2012 05:36:17 +0000 (UTC) Received: (qmail 30955 invoked by uid 500); 23 Feb 2012 05:36:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 30845 invoked by uid 500); 23 Feb 2012 05:36:13 -0000 Mailing-List: contact dev-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 dev@couchdb.apache.org Received: (qmail 30772 invoked by uid 99); 23 Feb 2012 05:36:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 05:36:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 05:36:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 64FF333504B for ; Thu, 23 Feb 2012 05:35:49 +0000 (UTC) Date: Thu, 23 Feb 2012 05:35:49 +0000 (UTC) From: "Jason Smith (Created) (JIRA)" To: dev@couchdb.apache.org Message-ID: <88120857.8311.1329975349415.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (COUCHDB-1417) Running individual JS tests at the CLI fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Running individual JS tests at the CLI fails -------------------------------------------- Key: COUCHDB-1417 URL: https://issues.apache.org/jira/browse/COUCHDB-1417 Project: CouchDB Issue Type: Bug Components: Test Suite Affects Versions: 1.2 Reporter: Jason Smith Priority: Minor Running the following in the 1.2.x branch does not work: $ ./test/javascript/run share/www/script/test/rewrite.js [couchjs] Error: No XMLHTTPRequest support detected The cause is that the runner concatenates several files into one script: cat couchdb/share/www/script/json2.js couchdb/share/www/script/sha1.js couchdb/share/www/script/oauth.js couchdb/share/www/script/couch.js couchdb/share/www/script/couch_test_runner.js couchdb/share/www/script/couch_tests.js share/www/script/test/rewrite.js couchdb/test/javascript/couch_http.js couchdb/test/javascript/cli_runner.js If the final statement before couch_http.js is missing a semicolon, then couch_http.js will look like a function invocation. The fix is to modify couch_http.js to be completely protected from whatever statements may have preceded it. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira