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 e4e2c6f90401891a610796f6a48d59c8a4927f3e..ef3116a3125e50a930d1328dc6448a6b4ca532e9 100644 |
--- a/tests/language_strong/stacktrace_rethrow_error_test.dart |
+++ b/tests/language_strong/stacktrace_rethrow_error_test.dart |
@@ -12,10 +12,11 @@ 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 |
} |
} |
@@ -25,9 +26,9 @@ bb1() => cc1(); |
cc1() { |
try { |
dd1(); |
- } on String catch(e) { |
+ } on String catch (e) { |
fail(); |
- } on int catch(e) { |
+ } on int catch (e) { |
fail(); |
} |
} |
@@ -37,7 +38,7 @@ dd1() => ee1(); |
ee1() { |
try { |
ff1(); |
- } catch(e) { |
+ } catch (e) { |
rethrow; |
} |
} |
@@ -52,10 +53,11 @@ 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 |
} |
} |
@@ -65,9 +67,9 @@ bb2() => cc2(); |
cc2() { |
try { |
dd2(); |
- } on SubclassOfError catch(e) { |
+ } on SubclassOfError catch (e) { |
rethrow; |
- } on int catch(e) { |
+ } on int catch (e) { |
fail(); |
} |
} |
@@ -77,7 +79,7 @@ dd2() => ee2(); |
ee2() { |
try { |
ff2(); |
- } catch(e) { |
+ } catch (e) { |
rethrow; |
} |
} |
@@ -92,10 +94,11 @@ 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 |
} |
} |
@@ -105,7 +108,7 @@ bb3() => cc3(); |
cc3() { |
try { |
dd3(); |
- } catch(e) { |
+ } catch (e) { |
throw e; |
} |
} |
@@ -115,7 +118,7 @@ dd3() => ee3(); |
ee3() { |
try { |
ff3(); |
- } catch(e) { |
+ } catch (e) { |
rethrow; |
} |
} |
@@ -152,4 +155,4 @@ main() { |
aa1(); |
aa2(); |
aa3(); |
-} |
+} |