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

Unified Diff: tests/lib_strong/mirrors/invoke_import_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/mirrors/invoke_import_test.dart
diff --git a/tests/lib_strong/mirrors/invoke_import_test.dart b/tests/lib_strong/mirrors/invoke_import_test.dart
index 647a2f86301ec0810cf5c97d35bba4eeae83144f..332a8ddc2e89981e714c2922a302fabdf92af7a6 100644
--- a/tests/lib_strong/mirrors/invoke_import_test.dart
+++ b/tests/lib_strong/mirrors/invoke_import_test.dart
@@ -13,23 +13,28 @@ main() {
LibraryMirror thisLibrary =
currentMirrorSystem().findLibrary(#test.invoke_import_test);
- Expect.throws(() => thisLibrary.invoke(#topLevelMethod, []),
- (e) => e is NoSuchMethodError,
- 'Should not invoke imported method #topLevelMethod');
-
- Expect.throws(() => thisLibrary.getField(#topLevelGetter),
- (e) => e is NoSuchMethodError,
- 'Should not invoke imported getter #topLevelGetter');
-
- Expect.throws(() => thisLibrary.getField(#topLevelField),
- (e) => e is NoSuchMethodError,
- 'Should not invoke imported field #topLevelField');
-
- Expect.throws(() => thisLibrary.setField(#topLevelSetter, 23),
- (e) => e is NoSuchMethodError,
- 'Should not invoke imported setter #topLevelSetter');
-
- Expect.throws(() => thisLibrary.setField(#topLevelField, 23),
- (e) => e is NoSuchMethodError,
- 'Should not invoke imported field #topLevelField');
+ Expect.throws(
+ () => thisLibrary.invoke(#topLevelMethod, []),
+ (e) => e is NoSuchMethodError,
+ 'Should not invoke imported method #topLevelMethod');
+
+ Expect.throws(
+ () => thisLibrary.getField(#topLevelGetter),
+ (e) => e is NoSuchMethodError,
+ 'Should not invoke imported getter #topLevelGetter');
+
+ Expect.throws(
+ () => thisLibrary.getField(#topLevelField),
+ (e) => e is NoSuchMethodError,
+ 'Should not invoke imported field #topLevelField');
+
+ Expect.throws(
+ () => thisLibrary.setField(#topLevelSetter, 23),
+ (e) => e is NoSuchMethodError,
+ 'Should not invoke imported setter #topLevelSetter');
+
+ Expect.throws(
+ () => thisLibrary.setField(#topLevelField, 23),
+ (e) => e is NoSuchMethodError,
+ 'Should not invoke imported field #topLevelField');
}

Powered by Google App Engine
This is Rietveld 408576698