File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ to retrieve Buzz activity and comments.
53
53
</div>
54
54
</doc:source>
55
55
<doc:scenario>
56
- it ('fetch buzz and expand', function() {
56
+ xit ('fetch buzz and expand', function() {
57
57
element(':button:contains(fetch)').click();
58
58
expect(repeater('div.buzz').count()).toBeGreaterThan(0);
59
59
element('.buzz a:contains(Expand replies):first').click();
Original file line number Diff line number Diff line change 145
145
<input type="text" name="url" value="index.html" size="80"/>
146
146
<button ng:click="fetch()">fetch</button><br>
147
147
<button ng:click="updateModel('GET', 'index.html')">Sample GET</button>
148
- <button ng:click="updateModel('JSON', 'https ://www.googleapis.com/buzz/v1/activities/googlebuzz/@self?alt=json& callback=JSON_CALLBACK')">Sample JSONP (Buzz API) </button>
149
- <button ng:click="updateModel('JSON', 'https ://www.invalid_JSONP_request.com &callback=JSON_CALLBACK')">Invalid JSONP</button>
148
+ <button ng:click="updateModel('JSON', 'http ://angularjs.org/greet.php? callback=JSON_CALLBACK&name=Super%20Hero ')">Sample JSONP</button>
149
+ <button ng:click="updateModel('JSON', 'http ://angularjs.org/doesntexist &callback=JSON_CALLBACK')">Invalid JSONP</button>
150
150
<pre>code={{code}}</pre>
151
151
<pre>response={{response}}</pre>
152
152
</div>
159
159
expect(binding('response')).toMatch(/angularjs.org/);
160
160
});
161
161
162
- it('should make JSONP request to the Buzz API ', function() {
163
- element(':button:contains("Buzz API ")').click();
162
+ it('should make JSONP request to the angularjs.org ', function() {
163
+ element(':button:contains("Sample JSONP ")').click();
164
164
element(':button:contains("fetch")').click();
165
165
expect(binding('code')).toBe('code=200');
166
- expect(binding('response')).toMatch(/buzz-feed /);
166
+ expect(binding('response')).toMatch(/Super Hero! /);
167
167
});
168
168
169
169
it('should make JSONP request to invalid URL and invoke the error handler',
You can’t perform that action at this time.
0 commit comments