From 7f0b97e02c61183a30d39f7ce81d11220ac64cca Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Fri, 2 Sep 2011 15:53:26 -0700
Subject: test(jsonp): fixing jsonp e2e tests
- buzz api keeps on throttling our requests which makes our build fail
so I'm disabling the buzz demo e2e test
- the $xhr service jsonp test was modified to use jsonp on angularjs.org
instead of buzz api for the same reason as mentioned above
---
src/service/xhr.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'src/service')
diff --git a/src/service/xhr.js b/src/service/xhr.js
index 32d33f52..09e7d070 100644
--- a/src/service/xhr.js
+++ b/src/service/xhr.js
@@ -140,8 +140,8 @@
-
-
+
+
code={{code}}
response={{response}}
@@ -154,11 +154,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',
--
cgit v1.2.3