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); |
-} |
+} |