From callback-dev-return-4266-apmail-incubator-callback-dev-archive=incubator.apache.org@incubator.apache.org Mon Apr 2 19:33:43 2012 Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D87E97E1 for ; Mon, 2 Apr 2012 19:33:43 +0000 (UTC) Received: (qmail 76435 invoked by uid 500); 2 Apr 2012 19:33:43 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 76399 invoked by uid 500); 2 Apr 2012 19:33:43 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 76310 invoked by uid 99); 2 Apr 2012 19:33:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 19:33:43 +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; Mon, 02 Apr 2012 19:33:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B94F5354D18 for ; Mon, 2 Apr 2012 19:33:21 +0000 (UTC) Date: Mon, 2 Apr 2012 19:33:21 +0000 (UTC) From: "Jesse MacFadyen (Created) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <666123760.2318.1333395201760.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CB-424) Many typeof tests are invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Many typeof tests are invalid ----------------------------- Key: CB-424 URL: https://issues.apache.org/jira/browse/CB-424 Project: Apache Callback Issue Type: Bug Components: mobile-spec Affects Versions: 1.5.0 Reporter: Jesse MacFadyen There are many tests that test the existence of interfaces where duck-typing should be employed. ex. The geolocation tests test if the code can create a Coordinates object. The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates. We should be testing solely on the existence of the properties defined in the spec. Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. -- 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