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

Unified Diff: tests/language_strong/stacktrace_rethrow_error_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tests/language_strong/setter_override_test.dart ('k') | tests/language_strong/static_field_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/stacktrace_rethrow_error_test.dart
diff --git a/tests/language_strong/stacktrace_rethrow_error_test.dart b/tests/language_strong/stacktrace_rethrow_error_test.dart
index ef3116a3125e50a930d1328dc6448a6b4ca532e9..e4e2c6f90401891a610796f6a48d59c8a4927f3e 100644
--- a/tests/language_strong/stacktrace_rethrow_error_test.dart
+++ b/tests/language_strong/stacktrace_rethrow_error_test.dart
@@ -12,11 +12,10 @@ aa1() {
try {
bb1();
fail();
- } catch (error
+ } catch(error
, stacktrace // //# withtraceparameter: ok
- ) {
- expectTrace(
- ['gg1', 'ff1', 'ee1', 'dd1', 'cc1', 'bb1', 'aa1'], error.stackTrace);
+ ) {
+ expectTrace(['gg1', 'ff1', 'ee1', 'dd1', 'cc1', 'bb1', 'aa1'], error.stackTrace);
expectTrace(['gg1', 'ff1', 'ee1', 'dd1', 'cc1', 'bb1', 'aa1'], stacktrace); // //# withtraceparameter: continued
}
}
@@ -26,9 +25,9 @@ bb1() => cc1();
cc1() {
try {
dd1();
- } on String catch (e) {
+ } on String catch(e) {
fail();
- } on int catch (e) {
+ } on int catch(e) {
fail();
}
}
@@ -38,7 +37,7 @@ dd1() => ee1();
ee1() {
try {
ff1();
- } catch (e) {
+ } catch(e) {
rethrow;
}
}
@@ -53,11 +52,10 @@ aa2() {
try {
bb2();
fail();
- } catch (error
+ } catch(error
, stacktrace // //# withtraceparameter: continued
- ) {
- expectTrace(
- ['gg2', 'ff2', 'ee2', 'dd2', 'cc2', 'bb2', 'aa2'], error.stackTrace);
+ ) {
+ expectTrace(['gg2', 'ff2', 'ee2', 'dd2', 'cc2', 'bb2', 'aa2'], error.stackTrace);
expectTrace(['gg2', 'ff2', 'ee2', 'dd2', 'cc2', 'bb2', 'aa2'], stacktrace); // //# withtraceparameter: continued
}
}
@@ -67,9 +65,9 @@ bb2() => cc2();
cc2() {
try {
dd2();
- } on SubclassOfError catch (e) {
+ } on SubclassOfError catch(e) {
rethrow;
- } on int catch (e) {
+ } on int catch(e) {
fail();
}
}
@@ -79,7 +77,7 @@ dd2() => ee2();
ee2() {
try {
ff2();
- } catch (e) {
+ } catch(e) {
rethrow;
}
}
@@ -94,11 +92,10 @@ aa3() {
try {
bb3();
fail();
- } catch (error
+ } catch(error
, stacktrace // //# withtraceparameter: continued
- ) {
- expectTrace(
- ['gg3', 'ff3', 'ee3', 'dd3', 'cc3', 'bb3', 'aa3'], error.stackTrace);
+ ) {
+ expectTrace(['gg3', 'ff3', 'ee3', 'dd3', 'cc3', 'bb3', 'aa3'], error.stackTrace);
expectTrace(['cc3', 'bb3', 'aa3'], stacktrace); // //# withtraceparameter: continued
}
}
@@ -108,7 +105,7 @@ bb3() => cc3();
cc3() {
try {
dd3();
- } catch (e) {
+ } catch(e) {
throw e;
}
}
@@ -118,7 +115,7 @@ dd3() => ee3();
ee3() {
try {
ff3();
- } catch (e) {
+ } catch(e) {
rethrow;
}
}
@@ -155,4 +152,4 @@ main() {
aa1();
aa2();
aa3();
-}
+}
« no previous file with comments | « tests/language_strong/setter_override_test.dart ('k') | tests/language_strong/static_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698