Index: tests/html/xhr_test.dart |
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart |
index 91e86d5664feac75a7a2120cd66866a11fe35414..ed3bd83f8f8c9badddce1473596b1cb75c9bb3d8 100644 |
--- a/tests/html/xhr_test.dart |
+++ b/tests/html/xhr_test.dart |
@@ -53,7 +53,7 @@ main() { |
group('xhr', () { |
test('XHR No file', () { |
HttpRequest xhr = new HttpRequest(); |
- xhr.open("GET", "NonExistingFile", true); |
+ xhr.open("GET", "NonExistingFile", async: true); |
xhr.onReadyStateChange.listen(expectAsyncUntil1((event) { |
if (xhr.readyState == HttpRequest.DONE) { |
validate404(xhr); |
@@ -66,7 +66,7 @@ main() { |
var loadEndCalled = false; |
var xhr = new HttpRequest(); |
- xhr.open('GET', url, true); |
+ xhr.open('GET', url, async: true); |
xhr.onReadyStateChange.listen(expectAsyncUntil1((e) { |
if (xhr.readyState == HttpRequest.DONE) { |
validate200Response(xhr); |