mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
Unflake-ify xhr_cross_origin_test.
Review URL: https://codereview.chromium.org//11183038 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13758 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
77614b7263
commit
beff9f9724
|
@ -2,8 +2,6 @@
|
|||
# for details. All rights reserved. Use of this source code is governed by a
|
||||
# BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
xhr_cross_origin_test: Skip # http://dartbug.com/5645
|
||||
|
||||
window_open_test: Fail, Pass # http://dartbug.com/5151
|
||||
|
||||
event_test: Skip # Issue 1996
|
||||
|
|
1
tests/html/xhr_cross_origin_data.txt
Normal file
1
tests/html/xhr_cross_origin_data.txt
Normal file
File diff suppressed because one or more lines are too long
|
@ -12,8 +12,8 @@ main() {
|
|||
useHtmlConfiguration();
|
||||
|
||||
test('XHR Cross-domain', () {
|
||||
var url = "http://localhost:9876/tests/html/xhr_cross_origin_data.txt";
|
||||
var xhr = new HttpRequest();
|
||||
var url = "https://code.google.com/feeds/issues/p/dart/issues/full?alt=json";
|
||||
xhr.open('GET', url, true);
|
||||
var validate = expectAsync1((data) {
|
||||
expect(data, contains('feed'));
|
||||
|
@ -31,7 +31,7 @@ main() {
|
|||
});
|
||||
|
||||
test('XHR.get Cross-domain', () {
|
||||
var url = "https://code.google.com/feeds/issues/p/dart/issues/full?alt=json";
|
||||
var url = "http://localhost:9876/tests/html/xhr_cross_origin_data.txt";
|
||||
new HttpRequest.get(url, expectAsync1((xhr) {
|
||||
var data = JSON.parse(xhr.response);
|
||||
expect(data, contains('feed'));
|
||||
|
|
Loading…
Reference in a new issue