diff --git a/docs/content/cookbook/buzz.ngdoc b/docs/content/cookbook/buzz.ngdoc index 23473e56..a1e4a8b2 100644 --- a/docs/content/cookbook/buzz.ngdoc +++ b/docs/content/cookbook/buzz.ngdoc @@ -53,7 +53,7 @@ to retrieve Buzz activity and comments. - it('fetch buzz and expand', function() { + xit('fetch buzz and expand', function() { element(':button:contains(fetch)').click(); expect(repeater('div.buzz').count()).toBeGreaterThan(0); element('.buzz a:contains(Expand replies):first').click(); diff --git a/src/service/xhr.js b/src/service/xhr.js index 6bff6f04..f7f12b6b 100644 --- a/src/service/xhr.js +++ b/src/service/xhr.js @@ -145,8 +145,8 @@
- - + +
code={{code}}
response={{response}}
@@ -159,11 +159,11 @@ expect(binding('response')).toMatch(/angularjs.org/); }); - it('should make JSONP request to the Buzz API', function() { - element(':button:contains("Buzz API")').click(); + it('should make JSONP request to the angularjs.org', function() { + element(':button:contains("Sample JSONP")').click(); element(':button:contains("fetch")').click(); expect(binding('code')).toBe('code=200'); - expect(binding('response')).toMatch(/buzz-feed/); + expect(binding('response')).toMatch(/Super Hero!/); }); it('should make JSONP request to invalid URL and invoke the error handler',