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

Unified Diff: tests/language/malformed2_lib.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/language/malformed2_lib.dart
diff --git a/tests/language/malformed2_lib.dart b/tests/language/malformed2_lib.dart
index 50155a34908919216e509b65dc2495ce1d1e4919..44f01abbd3b6494f73d40e8283d36f22c56a0332 100644
--- a/tests/language/malformed2_lib.dart
+++ b/tests/language/malformed2_lib.dart
@@ -17,41 +17,30 @@ void testValue(var o) {
test(false, () => o as List<Unresolved>, "$o as List<Unresolved>");
test(false, () {
- try {
- } on Unresolved catch (e) {
- } catch (e) {
- }
+ try {} on Unresolved catch (e) {} catch (e) {}
}, "on Unresolved catch: Nothing thrown.");
test(true, () {
try {
throw o;
- } on Unresolved catch (e) {
- } catch (e) {
- }
+ } on Unresolved catch (e) {} catch (e) {}
}, "on Unresolved catch ($o)");
test(false, () {
try {
throw o;
- } on List<String> catch (e) {
- } on NullThrownError catch (e) {
- } on Unresolved catch (e) {
- } catch (e) {
- }
+ } on List<
+ String> catch (e) {} on NullThrownError catch (e) {} on Unresolved catch (e) {} catch (e) {}
}, "on List<String>/NullThrowError catch ($o)");
test(false, () {
try {
throw o;
- } on List<Unresolved> catch (e) {
- } on NullThrownError catch (e) {
- } on Unresolved catch (e) {
- } catch (e) {
- }
+ } on List<
+ Unresolved> catch (e) {} on NullThrownError catch (e) {} on Unresolved catch (e) {} catch (e) {}
}, "on List<Unresolved>/NullThrowError catch ($o)");
- test(o != null && inCheckedMode(),
- () { Unresolved u = o; },
- "Unresolved u = $o;");
- test(false,
- () { List<Unresolved> u = o; },
- "List<Unresolved> u = $o;");
-}
+ test(o != null && inCheckedMode(), () {
+ Unresolved u = o;
+ }, "Unresolved u = $o;");
+ test(false, () {
+ List<Unresolved> u = o;
+ }, "List<Unresolved> u = $o;");
+}

Powered by Google App Engine
This is Rietveld 408576698