Testing google maps OR using remote js

413 views
Skip to first unread message

apneadiving

unread,
Jun 27, 2011, 6:58:03 PM6/27/11
to Jasmine
Hi,

I'm using jasmine to test my js and am happy with it.

Now I'd like to test my google maps scripts and unlike the following
post:
http://groups.google.com/group/jasmine-js/browse_thread/thread/5c026ac9055d947d/9490e9345285b9c3?lnk=gst&q=google+maps#9490e9345285b9c3

I'd like to use the real google maps api to make my tests.

How is it possible to make a call to an external js using jasmine?

Thanks in advance,

Benjamin

Davis Frank

unread,
Jun 28, 2011, 12:55:57 AM6/28/11
to jasmi...@googlegroups.com
It's just JavaScript, so you can include all the JS you want on the runner page.

However, it is an antipattern to depend on an external service in your tests. It slows you down and can be hard to migrate to another api - say, if you move to Bing Maps the way a lot of apps are these days.

--dwf


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.


apneadiving

unread,
Jun 28, 2011, 8:19:19 AM6/28/11
to Jasmine
I'll keep your advice in mind but I really don't know HOW I could
integrate the external js.

Could you please provide some code?

Thanks in advance,

Benjamin

On Jun 28, 6:55 am, Davis Frank <dwfr...@pivotallabs.com> wrote:
> It's just JavaScript, so you can include all the JS you want on the runner
> page.
>
> However, it is an antipattern to depend on an external service in your
> tests. It slows you down and can be hard to migrate to another api - say, if
> you move to Bing Maps the way a lot of apps are these days.
>
> --dwf
>
> On Mon, Jun 27, 2011 at 3:58 PM, apneadiving <benjamin.r...@peachyweb.com>wrote:
>
>
>
> > Hi,
>
> > I'm using jasmine to test my js and am happy with it.
>
> > Now I'd like to test my google maps scripts and unlike the following
> > post:
>
> >http://groups.google.com/group/jasmine-js/browse_thread/thread/5c026a...
Reply all
Reply to author
Forward
0 new messages