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

Unified Diff: tests/html/xhr_test.dart

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert generated files for html lib Created 7 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 4758a8a1038551642a34582e8276b701181c3f3d..ae4faea80c514c8cfc5028ba867c06963de73fff 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -8,6 +8,7 @@ import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:async';
import 'dart:html';
import 'dart:json' as json;
+import 'dart:typeddata';
void fail(message) {
guardAsync(() {
@@ -147,9 +148,9 @@ main() {
HttpRequest.request(url, responseType: 'arraybuffer').then(
expectAsync1((xhr) {
expect(xhr.status, equals(200));
- var arrayBuffer = xhr.response;
- expect(arrayBuffer, new isInstanceOf<ArrayBuffer>());
- expect(arrayBuffer, isNotNull);
+ var byteBuffer = xhr.response;
+ expect(byteBuffer, new isInstanceOf<ByteBuffer>());
+ expect(byteBuffer, isNotNull);
}));
}
});

Powered by Google App Engine
This is Rietveld 408576698