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

Unified Diff: tests/language_strong/async_await_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of 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
Index: tests/language_strong/async_await_test.dart
diff --git a/tests/language_strong/async_await_test.dart b/tests/language_strong/async_await_test.dart
index fe199cec623ba4d9b1f1cdbb0aa1eda888040c93..e8884b37112bab38270570c49bf9041960213d99 100644
--- a/tests/language_strong/async_await_test.dart
+++ b/tests/language_strong/async_await_test.dart
@@ -1731,37 +1731,37 @@ main() {
if (!checkedMode) return;
- test("inside assert, true", () { // /// 03: ok
- f() async { // /// 03: continued
- assert(await new Future.microtask(() => true)); // /// 03: continued
- return 42; // /// 03: continued
- } // /// 03: continued
- return expect42(f()); // /// 03: continued
- }); // /// 03: continued
-
- test("inside assert, false", () { // /// 03: continued
- f() async { // /// 03: continued
- assert(await new Future.microtask(() => false)); // /// 03: continued
- return 42; // /// 03: continued
- } // /// 03: continued
- return f().then((_) { // /// 03: continued
- fail("assert didn't throw"); // /// 03: continued
- }, onError: (e, s) { // /// 03: continued
- expect(e is AssertionError, isTrue); // /// 03: continued
- }); // /// 03: continued
- }); // /// 03: continued
-
- test("inside assert, function -> false", () { // /// 03: continued
- f() async { // /// 03: continued
- assert(await new Future.microtask(() => false)); // /// 03: continued
- return 42; // /// 03: continued
- } // /// 03: continued
- return f().then((_) { // /// 03: continued
- fail("assert didn't throw"); // /// 03: continued
- }, onError: (e, s) { // /// 03: continued
- expect(e is AssertionError, isTrue); // /// 03: continued
- }); // /// 03: continued
- }); // /// 03: continued
+ test("inside assert, true", () { // //# 03: ok
+ f() async { // //# 03: continued
+ assert(await new Future.microtask(() => true)); // //# 03: continued
+ return 42; // //# 03: continued
+ } // //# 03: continued
+ return expect42(f()); // //# 03: continued
+ }); // //# 03: continued
+
+ test("inside assert, false", () { // //# 03: continued
+ f() async { // //# 03: continued
+ assert(await new Future.microtask(() => false)); // //# 03: continued
+ return 42; // //# 03: continued
+ } // //# 03: continued
+ return f().then((_) { // //# 03: continued
+ fail("assert didn't throw"); // //# 03: continued
+ }, onError: (e, s) { // //# 03: continued
+ expect(e is AssertionError, isTrue); // //# 03: continued
+ }); // //# 03: continued
+ }); // //# 03: continued
+
+ test("inside assert, function -> false", () { // //# 03: continued
+ f() async { // //# 03: continued
+ assert(await new Future.microtask(() => false)); // //# 03: continued
+ return 42; // //# 03: continued
+ } // //# 03: continued
+ return f().then((_) { // //# 03: continued
+ fail("assert didn't throw"); // //# 03: continued
+ }, onError: (e, s) { // //# 03: continued
+ expect(e is AssertionError, isTrue); // //# 03: continued
+ }); // //# 03: continued
+ }); // //# 03: continued
});
@@ -1772,11 +1772,11 @@ main() {
expect(async, equals(42));
});
- test("await as variable", () { // /// 02: ok
- // Valid identifiers outside of async function. // /// 02: continued
- var await = 42; // /// 02: continued
- expect(await, equals(42)); // /// 02: continued
- }); // /// 02: continued
+ test("await as variable", () { // //# 02: ok
+ // Valid identifiers outside of async function. // //# 02: continued
+ var await = 42; // //# 02: continued
+ expect(await, equals(42)); // //# 02: continued
+ }); // //# 02: continued
test("yield as variable", () {
// Valid identifiers outside of async function.
« no previous file with comments | « tests/language_strong/async_await_syntax_test.dart ('k') | tests/language_strong/async_continue_label_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698