]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merge branch '281' into 347a
authorrwldrn <waldron.rick@gmail.com>
Wed, 16 Feb 2011 21:49:02 +0000 (16:49 -0500)
committerrwldrn <waldron.rick@gmail.com>
Wed, 16 Feb 2011 21:49:02 +0000 (16:49 -0500)
1  2 
test/popcorn.unit.js

index e5cd8657782038ceb09a02018e134d3ab9a8aa71,72ee40426c46289d966453e581ec0756d64d7232..2a35ce20eba47eaec3b20bde65646feebbbad100
@@@ -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 ) {