From: rwldrn Date: Wed, 16 Feb 2011 21:49:02 +0000 (-0500) Subject: Merge branch '281' into 347a X-Git-Tag: v0.4~34^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a1d6d71d54ea280413f86e157d811c855aa8a88b;p=popcorn-js.git Merge branch '281' into 347a --- a1d6d71d54ea280413f86e157d811c855aa8a88b diff --cc test/popcorn.unit.js index e5cd865,72ee404..2a35ce2 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@@ -1253,26 -1256,10 +1256,26 @@@ test("JSONP Response", function () } ); - + + Popcorn.xhr.getJSONP( + "http://api.flickr.com/services/feeds/photos_public.gne?id=35034346917@N01&lang=en-us&format=json&jsoncallback=flickr", + + function( data ) { + + + + ok(data, "getJSONP returns flickr data"); + plus(); + + equal( typeof data, "object", "getJSONP returns flickr data"); + plus(); + + + } + ); - Popcorn.xhr.getJSONP( - 'data/jsonp.json', + Popcorn.getJSONP( + 'data/jsonp.json?callback=jsonp', function( data ) {