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

Unified Diff: tests/language_strong/async_throw_in_catch_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/async_switch_test.dart ('k') | tests/language_strong/bad_constructor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/async_throw_in_catch_test.dart
diff --git a/tests/language_strong/async_throw_in_catch_test.dart b/tests/language_strong/async_throw_in_catch_test.dart
index ef6f9490dd8d56a69c9fcb5df2daf3f49362476b..700621db74962891e160dea69080d1658c14ee0b 100644
--- a/tests/language_strong/async_throw_in_catch_test.dart
+++ b/tests/language_strong/async_throw_in_catch_test.dart
@@ -86,16 +86,17 @@ foo4(Tracer tracer) async {
await new Future.value(3); //# forceAwait: continued
tracer.trace("a");
throw "Error";
- } catch (error) {
+ } catch(error) {
tracer.trace("b");
Expect.equals("Error", error);
throw "Error2";
}
- } catch (error) {
+ } catch(error) {
Expect.equals("Error2", error);
tracer.trace("c");
}
tracer.trace("d");
+
}
foo5(Tracer tracer) async {
@@ -105,7 +106,7 @@ foo5(Tracer tracer) async {
await new Future.value(3); //# forceAwait: continued
tracer.trace("b");
throw "Error";
- } catch (error) {
+ } catch(error) {
tracer.trace("c");
Expect.equals("Error", error);
throw "Error2";
@@ -114,6 +115,7 @@ foo5(Tracer tracer) async {
tracer.trace("d");
}
tracer.trace("e");
+
}
foo6(Tracer tracer) async {
@@ -122,7 +124,7 @@ foo6(Tracer tracer) async {
await new Future.value(3); //# forceAwait: continued
tracer.trace("a");
throw "Error";
- } catch (error) {
+ } catch(error) {
tracer.trace("b");
Expect.equals("Error", error);
throw "Error2";
@@ -130,7 +132,7 @@ foo6(Tracer tracer) async {
tracer.trace("c");
throw "Error3";
}
- } catch (error) {
+ } catch(error) {
tracer.trace("d");
Expect.equals("Error3", error);
}
@@ -143,7 +145,7 @@ foo7(Tracer tracer) async {
await new Future.value(3); //# forceAwait: continued
tracer.trace("a");
throw "Error";
- } catch (error) {
+ } catch(error) {
Expect.equals("Error", error);
tracer.trace("b");
throw "Error2";
@@ -163,7 +165,7 @@ foo8(Tracer tracer) async {
await new Future.value(3); //# forceAwait: continued
tracer.trace("a");
throw "Error";
- } catch (error) {
+ } catch(error) {
Expect.equals("Error", error);
tracer.trace("b");
return;
@@ -179,12 +181,12 @@ foo8(Tracer tracer) async {
foo9(Tracer tracer) async {
try {
- while (true) {
+ while(true) {
try {
await new Future.value(3); //# forceAwait: continued
tracer.trace("a");
throw "Error";
- } catch (error) {
+ } catch(error) {
Expect.equals("Error", error);
tracer.trace("b");
return;
@@ -213,7 +215,7 @@ foo10(Tracer tracer) async {
try {
await new Future.value(3); // //# forceAwait: continued
throw "Error2";
- } catch (error) {
+ } catch(error) {
tracer.trace("c");
} finally {
tracer.trace("d");
@@ -240,14 +242,14 @@ foo10(Tracer tracer) async {
foo11(Tracer tracer) async {
try {
bool firstTime = true;
- while (true) {
+ while(true) {
tracer.trace("a");
if (firstTime) {
try {
await new Future.value(3); //# forceAwait: continued
tracer.trace("b");
throw "Error";
- } catch (error) {
+ } catch(error) {
Expect.equals("Error", error);
tracer.trace("c");
firstTime = false;
@@ -269,14 +271,14 @@ foo11(Tracer tracer) async {
foo12(Tracer tracer) async {
try {
bool firstTime = true;
- while (true) {
+ while(true) {
tracer.trace("a");
if (firstTime) {
try {
await new Future.value(3); //# forceAwait: continued
tracer.trace("b");
throw "Error";
- } catch (error) {
+ } catch(error) {
Expect.equals("Error", error);
tracer.trace("c");
firstTime = false;
@@ -333,7 +335,7 @@ foo14(Tracer tracer) async {
try {
await new Future.value(3); // //# forceAwait: continued
throw "Error2";
- } catch (error) {
+ } catch(error) {
tracer.trace("c");
} finally {
tracer.trace("d");
@@ -359,7 +361,7 @@ foo15(Tracer tracer) async {
try {
await new Future.value(3); // //# forceAwait: continued
throw "Error2";
- } catch (error) {
+ } catch(error) {
tracer.trace("c");
} finally {
tracer.trace("d");
@@ -386,7 +388,7 @@ foo16(Tracer tracer) async {
try {
await new Future.value(3); // //# forceAwait: continued
throw "Error2";
- } catch (error) {
+ } catch(error) {
tracer.trace("c");
} finally {
tracer.trace("d");
@@ -424,7 +426,7 @@ foo17(Tracer tracer) async {
foo18(Tracer tracer) async {
try {
- tracer.trace("a");
+ tracer.trace("a");
} finally {
try {
tracer.trace("b");
@@ -472,4 +474,4 @@ test() async {
void main() {
asyncTest(test);
-}
+}
« no previous file with comments | « tests/language_strong/async_switch_test.dart ('k') | tests/language_strong/bad_constructor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698