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

Unified Diff: tests/language_strong/async_or_generator_return_type_stacktrace_test.dart

Issue 2765693002: Update all tests (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
Index: tests/language_strong/async_or_generator_return_type_stacktrace_test.dart
diff --git a/tests/language_strong/async_or_generator_return_type_stacktrace_test.dart b/tests/language_strong/async_or_generator_return_type_stacktrace_test.dart
index 1fa3d9378e4697437f910b9b007b46df615a6ad5..84d8d3fcab889b55609d47a9529eb7ce996f48b3 100644
--- a/tests/language_strong/async_or_generator_return_type_stacktrace_test.dart
+++ b/tests/language_strong/async_or_generator_return_type_stacktrace_test.dart
@@ -4,13 +4,13 @@
import "package:expect/expect.dart";
-void badReturnTypeAsync() async {} /// 01: static type warning
-void badReturnTypeAsyncStar() async* {} /// 02: static type warning
-void badReturnTypeSyncStar() sync* {} /// 03: static type warning
+void badReturnTypeAsync() async {} //# 01: static type warning
+void badReturnTypeAsyncStar() async* {} //# 02: static type warning
+void badReturnTypeSyncStar() sync* {} //# 03: static type warning
main() {
try {
- badReturnTypeAsync(); /// 01: continued
+ badReturnTypeAsync(); //# 01: continued
} catch(e, st) {
Expect.isTrue(e is TypeError, "wrong exception type");
Expect.isTrue(st.toString().contains("badReturnTypeAsync"),
@@ -18,7 +18,7 @@ main() {
}
try {
- badReturnTypeAsyncStar(); /// 02: continued
+ badReturnTypeAsyncStar(); //# 02: continued
} catch(e, st) {
Expect.isTrue(e is TypeError, "wrong exception type");
Expect.isTrue(st.toString().contains("badReturnTypeAsyncStar"),
@@ -26,7 +26,7 @@ main() {
}
try {
- badReturnTypeSyncStar(); /// 03: continued
+ badReturnTypeSyncStar(); //# 03: continued
} catch(e, st) {
Expect.isTrue(e is TypeError, "wrong exception type");
Expect.isTrue(st.toString().contains("badReturnTypeSyncStar"),

Powered by Google App Engine
This is Rietveld 408576698