| Index: tests/html/xhr_cross_origin_test.dart
|
| diff --git a/tests/html/xhr_cross_origin_test.dart b/tests/html/xhr_cross_origin_test.dart
|
| index 4f4d8bd34a042cb85e1fbca4a629a593b998e87f..3bbb5ca2af94799e3974d9597ea4bc6bead39860 100644
|
| --- a/tests/html/xhr_cross_origin_test.dart
|
| +++ b/tests/html/xhr_cross_origin_test.dart
|
| @@ -50,7 +50,7 @@ main() {
|
|
|
| test('XHR.get Cross-domain', () {
|
| var url = "http://localhost:$port/tests/html/xhr_cross_origin_data.txt";
|
| - new HttpRequest.get(url, expectAsync1((xhr) {
|
| + HttpRequest.request(url).then(expectAsync1((xhr) {
|
| var data = json.parse(xhr.response);
|
| expect(data, contains('feed'));
|
| expect(data['feed'], contains('entry'));
|
| @@ -60,7 +60,7 @@ main() {
|
|
|
| test('XHR.getWithCredentials Cross-domain', () {
|
| var url = "http://localhost:$port/tests/html/xhr_cross_origin_data.txt";
|
| - new HttpRequest.getWithCredentials(url, expectAsync1((xhr) {
|
| + HttpRequest.request(url, withCredentials: true).then(expectAsync1((xhr) {
|
| var data = json.parse(xhr.response);
|
| expect(data, contains('feed'));
|
| expect(data['feed'], contains('entry'));
|
|
|