Hi everybody,

I've been working on the Geolocation unit tests of the WebKitGtk port.
Currently, only 3 tests are enabled in the Gtk port, which on the other
hand, is the only port that implements the Geolocation API nowadays. I
think that completing the unit tests set would be a great stuff and it
could improve a lot the visibility of the GeoClue project.

I've been working on the following test:
WebKit/LayoutTests/fast/dom/Geolocation/success.html

Perhaps my environment is not fully configured or incomplete, but the
test fail because its waiting for some web service response, in case
some of the related providers was selected, or its waiting for Inet
connection. I had problems with the NetworkManager; i had to hack the
NetworkManager code to always return TRUE when connectivity request is
sent. The lack of a correct Provider selection algorithm could also
affected.

Im not sure how would be the better approach to face this problem so i
would like to get some feedback from the GeoClue community. I've though
that the Manual provider could be used for unit testing purposes, but it
would require some human interaction, if I've correctly understood how
the provider works. 

Another idea that came up into my mind was to create a Dummy provider,
which gets the dummy position/address previously set by the unit tests
framework. The Javascript unit test framework is setting a fixed
location for all the WebKit ports through the SetPosition API, which has
to be implemented by GeoClue. We could implement such method in the
Dummy provider to locally store the dummy position to be retrieved when
GetPosition is called.

Thanks in advance for your suggestions.
Greeting,


-- 
Javier Fernández García-Boente
http://blogs.igalia.com/jfernandez/
www.igalia.com

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
GeoClue mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/geoclue

Reply via email to