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

Unified Diff: tests/html/xhr_cross_origin_test.dart

Issue 10823352: Rename XMLHttpRequest to HttpRequest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
Index: tests/html/xhr_cross_origin_test.dart
===================================================================
--- tests/html/xhr_cross_origin_test.dart (revision 10850)
+++ tests/html/xhr_cross_origin_test.dart (working copy)
@@ -12,7 +12,7 @@
useHtmlConfiguration();
test('XHR Cross-domain', () {
- var xhr = new XMLHttpRequest();
+ 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) {
@@ -22,7 +22,7 @@
});
xhr.on.readyStateChange.add((e) {
guardAsync(() {
- if (xhr.readyState == XMLHttpRequest.DONE) {
+ if (xhr.readyState == HttpRequest.DONE) {
validate(JSON.parse(xhr.response));
}
});
@@ -32,7 +32,7 @@
test('XHR.get Cross-domain', () {
var url = "https://code.google.com/feeds/issues/p/dart/issues/full?alt=json";
- new XMLHttpRequest.get(url, expectAsync1((xhr) {
+ new HttpRequest.get(url, expectAsync1((xhr) {
var data = JSON.parse(xhr.response);
expect(data, contains('feed'));
expect(data['feed'], contains('entry'));

Powered by Google App Engine
This is Rietveld 408576698