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

Unified Diff: tests/compiler/dart2js_extra/async_stacktrace_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/compiler/dart2js_extra/async_stacktrace_test.dart
diff --git a/tests/compiler/dart2js_extra/async_stacktrace_test.dart b/tests/compiler/dart2js_extra/async_stacktrace_test.dart
index 4c8aa7f861bce01e88a74dd68e9655a40e29587d..687222fd45e3f8fb6ad7e7efc8159129ae1c257b 100644
--- a/tests/compiler/dart2js_extra/async_stacktrace_test.dart
+++ b/tests/compiler/dart2js_extra/async_stacktrace_test.dart
@@ -27,9 +27,10 @@ class Tracer {
}
test1(Tracer tracer) {
- foo() async
- * /// asyncStar: ok
- {
+ foo() async*
+
+ /// asyncStar: ok
+ {
var savedStackTrace;
try {
try {
@@ -48,16 +49,19 @@ test1(Tracer tracer) {
}
tracer.trace("f");
}
- return foo()
- .toList() /// asyncStar: continued
- ;
+
+ return foo().toList()
+
+ /// asyncStar: continued
+ ;
}
test2(Tracer tracer) {
var savedStackTrace;
- foo() async
- * /// asyncStar: continued
- {
+ foo() async*
+
+ /// asyncStar: continued
+ {
try {
tracer.trace("a");
throw "Error";
@@ -69,8 +73,10 @@ test2(Tracer tracer) {
await new Future.error("Error 2", savedStackTrace);
tracer.trace("d");
}
- return foo()
- .toList() /// asyncStar: continued
+
+ return foo().toList()
+
+ /// asyncStar: continued
.catchError((e, st) {
tracer.trace("e");
Expect.equals(savedStackTrace.toString(), st.toString());
@@ -79,9 +85,10 @@ test2(Tracer tracer) {
test3(Tracer tracer) {
var savedStackTrace;
- foo() async
- * /// asyncStar: continued
- {
+ foo() async*
+
+ /// asyncStar: continued
+ {
try {
tracer.trace("a");
throw "Error";
@@ -91,8 +98,10 @@ test3(Tracer tracer) {
rethrow;
}
}
- return foo()
- .toList() /// asyncStar: continued
+
+ return foo().toList()
+
+ /// asyncStar: continued
.catchError((e, st) {
tracer.trace("c");
Expect.equals(savedStackTrace.toString(), st.toString());
@@ -113,4 +122,4 @@ runTests() async {
main() {
asyncTest(runTests);
-}
+}
« no previous file with comments | « tests/compiler/dart2js_extra/async_helper.dart ('k') | tests/compiler/dart2js_extra/bailout_aborting_if_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698