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

Unified Diff: tests/language/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/async_test.dart ('k') | tests/language/bad_constructor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/async_throw_in_catch_test.dart
diff --git a/tests/language/async_throw_in_catch_test.dart b/tests/language/async_throw_in_catch_test.dart
index f6c8f0d44ff4f80209f7d052af167093c97872f2..0802167b72e48d1fb31c446a8fce0f6123a222d0 100644
--- a/tests/language/async_throw_in_catch_test.dart
+++ b/tests/language/async_throw_in_catch_test.dart
@@ -85,16 +85,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 {
@@ -104,7 +105,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";
@@ -113,6 +114,7 @@ foo5(Tracer tracer) async {
tracer.trace("d");
}
tracer.trace("e");
+
}
foo6(Tracer tracer) async {
@@ -121,7 +123,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";
@@ -129,7 +131,7 @@ foo6(Tracer tracer) async {
tracer.trace("c");
throw "Error3";
}
- } catch (error) {
+ } catch(error) {
tracer.trace("d");
Expect.equals("Error3", error);
}
@@ -142,7 +144,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";
@@ -162,7 +164,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;
@@ -178,12 +180,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;
@@ -212,7 +214,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");
@@ -239,14 +241,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;
@@ -268,14 +270,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;
@@ -332,7 +334,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");
@@ -358,7 +360,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");
@@ -385,7 +387,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");
@@ -423,7 +425,7 @@ foo17(Tracer tracer) async {
foo18(Tracer tracer) async {
try {
- tracer.trace("a");
+ tracer.trace("a");
} finally {
try {
tracer.trace("b");
@@ -471,4 +473,4 @@ test() async {
void main() {
asyncTest(test);
-}
+}
« no previous file with comments | « tests/language/async_test.dart ('k') | tests/language/bad_constructor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698