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

Unified Diff: tests/html/xhr_test.dart

Issue 10291006: Rename getTEMPNAME to get (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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_test.dart
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart
index 8cba59cd7780d962721dd677e44ac1a41de111cf..1932ccb68e583bfe781257b67d6914a38422f9f1 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -23,4 +23,13 @@ main() {
});
xhr.send();
});
+
+ asyncTest('XHR.get', 1, () {
+ new XMLHttpRequest.get("NonExistingFile", (xhr) {
+ Expect.equals(XMLHttpRequest.DONE, xhr.readyState);
+ Expect.equals(0, xhr.status);
+ Expect.stringEquals('', xhr.responseText);
+ callbackDone();
+ });
+ });
}

Powered by Google App Engine
This is Rietveld 408576698