aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/http.js
diff options
context:
space:
mode:
authorMisko Hevery2011-12-14 02:55:31 +0100
committerMisko Hevery2012-01-25 11:53:59 -0800
commit4804c83b7db5770d5d02eea9eea4cc012b4aa524 (patch)
treebe5ae1743179704cc1638f186cddba8d6e3fa37d /src/service/http.js
parente2b1d9e994e50bcd01d237302a3357bc7ebb6fa5 (diff)
downloadangular.js-4804c83b7db5770d5d02eea9eea4cc012b4aa524.tar.bz2
docs(compiler): update the compiler docs
Diffstat (limited to 'src/service/http.js')
-rw-r--r--src/service/http.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service/http.js b/src/service/http.js
index 9d57ed76..93d44eac 100644
--- a/src/service/http.js
+++ b/src/service/http.js
@@ -438,14 +438,14 @@ function $HttpProvider() {
it('should make an xhr GET request', function() {
element(':button:contains("Sample GET")').click();
element(':button:contains("fetch")').click();
- expect(binding('status')).toBe('http status code: 200');
- expect(binding('data')).toBe('http response data: Hello, $http!\n');
+ expect(binding('status')).toBe('200');
+ expect(binding('data')).toBe('Hello, $http!\n');
});
it('should make a JSONP request to angularjs.org', function() {
element(':button:contains("Sample JSONP")').click();
element(':button:contains("fetch")').click();
- expect(binding('status')).toBe('http status code: 200');
+ expect(binding('status')).toBe('200');
expect(binding('data')).toMatch(/Super Hero!/);
});
@@ -453,8 +453,8 @@ function $HttpProvider() {
function() {
element(':button:contains("Invalid JSONP")').click();
element(':button:contains("fetch")').click();
- expect(binding('status')).toBe('http status code: 0');
- expect(binding('data')).toBe('http response data: Request failed');
+ expect(binding('status')).toBe('0');
+ expect(binding('data')).toBe('Request failed');
});
</doc:scenario>
</doc:example>