File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 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.
5353 </div>
5454 </doc:source>
5555 <doc:scenario>
56- it ('fetch buzz and expand', function() {
56+ xit ('fetch buzz and expand', function() {
5757 element(':button:contains(fetch)').click();
5858 expect(repeater('div.buzz').count()).toBeGreaterThan(0);
5959 element('.buzz a:contains(Expand replies):first').click();
Original file line number Diff line number Diff line change 145145 <input type="text" name="url" value="index.html" size="80"/>
146146 <button ng:click="fetch()">fetch</button><br>
147147 <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>
150150 <pre>code={{code}}</pre>
151151 <pre>response={{response}}</pre>
152152 </div>
159159 expect(binding('response')).toMatch(/angularjs.org/);
160160 });
161161
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();
164164 element(':button:contains("fetch")').click();
165165 expect(binding('code')).toBe('code=200');
166- expect(binding('response')).toMatch(/buzz-feed /);
166+ expect(binding('response')).toMatch(/Super Hero! /);
167167 });
168168
169169 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