incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon MacDonald <>
Subject Re: Geolocation test failures in Mobile Spec
Date Tue, 05 Jun 2012 16:44:25 GMT
Alright, I have to step out for a bit but I can start creating issues
after that.

Simon Mac Donald

On Tue, Jun 5, 2012 at 12:34 PM, Filip Maj <> wrote:
> Yes, do it. It is clearly a mistake on my part. I assumed (!!!!!) that
> domtimestamp === number.
> *sad trumpet noise*
> On 6/5/12 9:31 AM, "Simon MacDonald" <> wrote:
>>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?
>>Simon Mac Donald

View raw message