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

Unified Diff: tests/html/xhr_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
« lib/dom/scripts/htmlrenamer.py ('K') | « tests/html/xhr_cross_origin_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/xhr_test.dart
===================================================================
--- tests/html/xhr_test.dart (revision 10850)
+++ tests/html/xhr_test.dart (working copy)
@@ -12,10 +12,10 @@
useHtmlConfiguration();
test('XHR No file', () {
- XMLHttpRequest xhr = new XMLHttpRequest();
+ HttpRequest xhr = new HttpRequest();
xhr.open("GET", "NonExistingFile", true);
xhr.on.readyStateChange.add(expectAsync1((event) {
- if (xhr.readyState == XMLHttpRequest.DONE) {
+ if (xhr.readyState == HttpRequest.DONE) {
expect(xhr.status, equals(0));
expect(xhr.responseText, equals(''));
}
@@ -24,8 +24,8 @@
});
test('XHR.get No file', () {
- new XMLHttpRequest.get("NonExistingFile", expectAsync1((xhr) {
- expect(xhr.readyState, equals(XMLHttpRequest.DONE));
+ new HttpRequest.get("NonExistingFile", expectAsync1((xhr) {
+ expect(xhr.readyState, equals(HttpRequest.DONE));
expect(xhr.status, equals(0));
expect(xhr.responseText, equals(''));
}));
« lib/dom/scripts/htmlrenamer.py ('K') | « tests/html/xhr_cross_origin_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698