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

Unified Diff: tests/html/filereader_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/filereader_test.dart
diff --git a/tests/html/filereader_test.dart b/tests/html/filereader_test.dart
index 9eb8a23b7141c47fd7198a8861fafe6c37a53fb3..07d5a589aa008cc618bf0aa2158ccc0c7e8586d3 100644
--- a/tests/html/filereader_test.dart
+++ b/tests/html/filereader_test.dart
@@ -13,7 +13,7 @@ main() {
test('readAsText', () {
var reader = new FileReader();
- reader.onLoad.listen(expectAsync1((event) {
+ reader.onLoad.listen(expectAsync((event) {
var result = reader.result;
expect(result, equals('hello world'));
}));
@@ -22,7 +22,7 @@ main() {
test('readAsArrayBuffer', () {
var reader = new FileReader();
- reader.onLoad.listen(expectAsync1((event) {
+ reader.onLoad.listen(expectAsync((event) {
var result = reader.result;
expect(result is Uint8List, isTrue);
expect(result, orderedEquals([65, 66, 67]));
@@ -32,7 +32,7 @@ main() {
test('readDataUrl', () {
var reader = new FileReader();
- reader.onLoad.listen(expectAsync1((event) {
+ reader.onLoad.listen(expectAsync((event) {
var result = reader.result;
expect(result is String, isTrue);
expect(result.startsWith('data:'), isTrue);

Powered by Google App Engine
This is Rietveld 408576698