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

Unified Diff: tests/language/vm/causal_async_exception_stack2_test.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/vm/causal_async_exception_stack2_test.dart
diff --git a/tests/language/vm/causal_async_exception_stack2_test.dart b/tests/language/vm/causal_async_exception_stack2_test.dart
index 18afd98a3811238abbe75859569a50a4306f818e..77e9f322c6f958ddb3fdb8c2949d950dbddbaf05 100644
--- a/tests/language/vm/causal_async_exception_stack2_test.dart
+++ b/tests/language/vm/causal_async_exception_stack2_test.dart
@@ -22,33 +22,37 @@ test1() async {
try {
await a;
- } catch(e, st) {
+ } catch (e, st) {
// st has foo,2,3 and not bar,2,3.
- expect(st.toString(), stringContainsInOrder([
- 'foo3',
- '<asynchronous suspension>',
- 'foo2',
- '<asynchronous suspension>',
- 'foo',
- '<asynchronous suspension>',
- 'test1',
- ]));
+ expect(
+ st.toString(),
+ stringContainsInOrder([
+ 'foo3',
+ '<asynchronous suspension>',
+ 'foo2',
+ '<asynchronous suspension>',
+ 'foo',
+ '<asynchronous suspension>',
+ 'test1',
+ ]));
expect(st.toString().contains('bar'), isFalse);
}
try {
await b;
- } catch(e, st) {
+ } catch (e, st) {
// st has bar,2,3 but not foo,2,3
- expect(st.toString(), stringContainsInOrder([
- 'bar3',
- '<asynchronous suspension>',
- 'bar2',
- '<asynchronous suspension>',
- 'bar',
- '<asynchronous suspension>',
- 'test1',
- ]));
+ expect(
+ st.toString(),
+ stringContainsInOrder([
+ 'bar3',
+ '<asynchronous suspension>',
+ 'bar2',
+ '<asynchronous suspension>',
+ 'bar',
+ '<asynchronous suspension>',
+ 'test1',
+ ]));
expect(st.toString().contains('foo'), isFalse);
}
}
@@ -61,33 +65,37 @@ test2() async {
try {
await foo();
- } catch(e, st) {
+ } catch (e, st) {
// st has foo,2,3 but not bar,2,3
- expect(st.toString(), stringContainsInOrder([
- 'foo3',
- '<asynchronous suspension>',
- 'foo2',
- '<asynchronous suspension>',
- 'foo',
- '<asynchronous suspension>',
- 'test2',
- ]));
+ expect(
+ st.toString(),
+ stringContainsInOrder([
+ 'foo3',
+ '<asynchronous suspension>',
+ 'foo2',
+ '<asynchronous suspension>',
+ 'foo',
+ '<asynchronous suspension>',
+ 'test2',
+ ]));
expect(st.toString().contains('bar'), isFalse);
}
try {
await bar();
- } catch(e, st) {
+ } catch (e, st) {
// st has bar,2,3 but not foo,2,3
- expect(st.toString(), stringContainsInOrder([
- 'bar3',
- '<asynchronous suspension>',
- 'bar2',
- '<asynchronous suspension>',
- 'bar',
- '<asynchronous suspension>',
- 'test2',
- ]));
+ expect(
+ st.toString(),
+ stringContainsInOrder([
+ 'bar3',
+ '<asynchronous suspension>',
+ 'bar2',
+ '<asynchronous suspension>',
+ 'bar',
+ '<asynchronous suspension>',
+ 'test2',
+ ]));
expect(st.toString().contains('foo'), isFalse);
}
}
@@ -95,4 +103,4 @@ test2() async {
main() async {
await test1();
await test2();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698