Piotr Sarnacki
unread,Oct 30, 2009, 6:36:30 AM10/30/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hi,
As there is no TileOverlay in google maps version 3 I wrote my own and
I would like to add unit tests for it. It is extending OverlayView:
TileOverlay.prototype = new google.maps.OverlayView();
It takes map as one of the options and then does this.set_map
(options.map). Is it ok if I will actually load google map? Or should
mock google map element in some way?
I know that from the theoretical I should mock it, to test code in
isolation, but sometimes the more convenient way is to use some real
parts of the system. How do you solve that problem in practice?