Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: tests/html/xhr_cross_origin_test.dart

Issue 12087119: Fixing htm/xhr_cross_origin test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698