Index: tests/html/filereader_test.dart |
diff --git a/tests/html/filereader_test.dart b/tests/html/filereader_test.dart |
index 07d5a589aa008cc618bf0aa2158ccc0c7e8586d3..18c49d1af09e76be6e61d77372814bb8d470643f 100644 |
--- a/tests/html/filereader_test.dart |
+++ b/tests/html/filereader_test.dart |
@@ -3,6 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file. |
library filereader_test; |
+ |
import 'package:unittest/unittest.dart'; |
import 'package:unittest/html_config.dart'; |
import 'dart:html'; |
@@ -12,32 +13,31 @@ main() { |
useHtmlConfiguration(); |
test('readAsText', () { |
- var reader = new FileReader(); |
- reader.onLoad.listen(expectAsync((event) { |
- var result = reader.result; |
- expect(result, equals('hello world')); |
- })); |
- reader.readAsText(new Blob(['hello ', 'world'])); |
+ var reader = new FileReader(); |
+ reader.onLoad.listen(expectAsync((event) { |
+ var result = reader.result; |
+ expect(result, equals('hello world')); |
+ })); |
+ reader.readAsText(new Blob(['hello ', 'world'])); |
}); |
test('readAsArrayBuffer', () { |
- var reader = new FileReader(); |
- reader.onLoad.listen(expectAsync((event) { |
- var result = reader.result; |
- expect(result is Uint8List, isTrue); |
- expect(result, orderedEquals([65, 66, 67])); |
- })); |
- reader.readAsArrayBuffer(new Blob(['ABC'])); |
+ var reader = new FileReader(); |
+ reader.onLoad.listen(expectAsync((event) { |
+ var result = reader.result; |
+ expect(result is Uint8List, isTrue); |
+ expect(result, orderedEquals([65, 66, 67])); |
+ })); |
+ reader.readAsArrayBuffer(new Blob(['ABC'])); |
}); |
test('readDataUrl', () { |
- var reader = new FileReader(); |
- reader.onLoad.listen(expectAsync((event) { |
- var result = reader.result; |
- expect(result is String, isTrue); |
- expect(result.startsWith('data:'), isTrue); |
- })); |
- reader.readAsDataUrl(new Blob(['ABC'])); |
+ var reader = new FileReader(); |
+ reader.onLoad.listen(expectAsync((event) { |
+ var result = reader.result; |
+ expect(result is String, isTrue); |
+ expect(result.startsWith('data:'), isTrue); |
+ })); |
+ reader.readAsDataUrl(new Blob(['ABC'])); |
}); |
- |
} |