@@ -111,7 +111,7 @@ describe('browser', function() {
111111 } ) ;
112112
113113 describe ( 'xhr' , function ( ) {
114- describe ( 'JSON ' , function ( ) {
114+ describe ( 'JSONP ' , function ( ) {
115115 var log ;
116116
117117 function callback ( code , data ) {
@@ -129,7 +129,7 @@ describe('browser', function() {
129129
130130 it ( 'should add script tag for JSONP request' , function ( ) {
131131 var notify = jasmine . createSpy ( 'notify' ) ;
132- browser . xhr ( 'JSON ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
132+ browser . xhr ( 'JSONP ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
133133 browser . notifyWhenNoOutstandingRequests ( notify ) ;
134134 expect ( notify ) . not . toHaveBeenCalled ( ) ;
135135 expect ( scripts . length ) . toEqual ( 1 ) ;
@@ -148,7 +148,7 @@ describe('browser', function() {
148148
149149
150150 it ( 'should call callback when script fails to load' , function ( ) {
151- browser . xhr ( 'JSON ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
151+ browser . xhr ( 'JSONP ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
152152 var script = scripts [ 0 ] ;
153153 expect ( typeof script . onload ) . toBe ( 'function' ) ;
154154 expect ( typeof script . onerror ) . toBe ( 'function' ) ;
@@ -160,7 +160,7 @@ describe('browser', function() {
160160
161161 it ( 'should update the outstandingRequests counter for successful requests' , function ( ) {
162162 var notify = jasmine . createSpy ( 'notify' ) ;
163- browser . xhr ( 'JSON ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
163+ browser . xhr ( 'JSONP ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
164164 browser . notifyWhenNoOutstandingRequests ( notify ) ;
165165 expect ( notify ) . not . toHaveBeenCalled ( ) ;
166166
@@ -175,7 +175,7 @@ describe('browser', function() {
175175
176176 it ( 'should update the outstandingRequests counter for failed requests' , function ( ) {
177177 var notify = jasmine . createSpy ( 'notify' ) ;
178- browser . xhr ( 'JSON ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
178+ browser . xhr ( 'JSONP ' , 'http://example.org/path?cb=JSON_CALLBACK' , null , callback ) ;
179179 browser . notifyWhenNoOutstandingRequests ( notify ) ;
180180 expect ( notify ) . not . toHaveBeenCalled ( ) ;
181181
0 commit comments