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

Unified Diff: tests/lib_strong/html/filereader_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 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/lib_strong/html/filereader_test.dart
diff --git a/tests/lib_strong/html/filereader_test.dart b/tests/lib_strong/html/filereader_test.dart
index 07d5a589aa008cc618bf0aa2158ccc0c7e8586d3..18c49d1af09e76be6e61d77372814bb8d470643f 100644
--- a/tests/lib_strong/html/filereader_test.dart
+++ b/tests/lib_strong/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']));
});
-
}

Powered by Google App Engine
This is Rietveld 408576698