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 49933C812 for ; Tue, 5 Jun 2012 16:32:20 +0000 (UTC) Received: (qmail 11953 invoked by uid 500); 5 Jun 2012 16:32:19 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 11887 invoked by uid 500); 5 Jun 2012 16:32:19 -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 11879 invoked by uid 99); 5 Jun 2012 16:32:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 16:32:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.macdonald@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 16:32:13 +0000 Received: by dalh21 with SMTP id h21so7620771dal.6 for ; Tue, 05 Jun 2012 09:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=x3q0oimXylWRpN5ALOC/GEkupRyrEGOc3i4U+f/LXFs=; b=TMXPg+psu1LpHhP/A+XCfdyBz3wYuiwCpNyKKVp+j57eG0dLjwiYbXjs61XsFE2wfl zBDiz8yFUv8lNkq/6EJH5yaFdEdrBAbMRRFvxtL7zicDEbbi2MzT06ja+IbBCkBlJ5Vt 3/0dyGe6r6kTiuhhyChSr0dht32/nf4HoCvzrTilnJvQ2lwWKLKCsey9LvUIGCBhNCUc f6KoYnCnzYy6tTu5689MAwXV4/dglk/J+AyfdPMCS4AaQ/cSGmKvPx6eDNfh5O6PKEDU 0zYtC4NejySuTl7sJ3ZN4nLjgtRs9dLud9adU77hm0vezPNbXmFL0lAD+TXyeXlpYp5o KCow== Received: by 10.68.226.226 with SMTP id rv2mr50306306pbc.101.1338913912656; Tue, 05 Jun 2012 09:31:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.202.35 with HTTP; Tue, 5 Jun 2012 09:31:32 -0700 (PDT) From: Simon MacDonald Date: Tue, 5 Jun 2012 12:31:32 -0400 Message-ID: Subject: Geolocation test failures in Mobile Spec To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 When I run the geolocation mobile spec tests on Android I get two failures. Both getCurrentPosition and watchPosition complain that p.timestamp is an Object when it expects a number. Well the native Android geolocation API returns a Date object not a timestamp in ms. Looking into the W3C spec for Geolocation the timestamp property of the Position interface should be a DOMTimeStamp [1]. In ECMAScript, the DOMTimeStamp maps to the Date type. So it seems like we have a number of items that we should address: 1) Update the geolocation tests to expect timestamp to be a Date. 2) Fix the documentation to let people know the timestamp property is a Data and not an integer of type ms. 3) Change the native implementations to return Date's not integers. What do you think should I go create JIRA tickets for all these issues? [1] http://www.w3.org/TR/geolocation-API/#position_interface [2] http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp Simon Mac Donald http://hi.im/simonmacdonald