dart-sdk/tests/language/async_star
Alexander Markov b285115893 [tests] Fix expectations in language/async_star/async_star_await_for_test
According to the language specification:
1) When 'break' is executed in the 'await for' loop (in 'main'),
the underlying stream subscription is canceled.
2) When async* function ('consume') has stopped at 'yield' or 'yield*',
and the stream is canceled, the 'yield' / 'yield*' statement returns
without an object. It also means that code in 'consume()' after
the loop is not executed and it doesn't append ")" to the log.
So the test expectations are fixed to avoid expecting trailing ")"
at the log when there is a 'break' out of the 'await for' loop.

Fixes https://github.com/dart-lang/sdk/issues/51097

Change-Id: Ia59e87ef84dcb8a0c06a47f497cc97d4c6635d27
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285343
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2023-02-27 16:25:50 +00:00
..
async_star2_regression_test.dart
async_star_await_for_test.dart [tests] Fix expectations in language/async_star/async_star_await_for_test 2023-02-27 16:25:50 +00:00
async_star_cancel_test.dart
async_star_invalid_test.dart Update syntax_test to avoid expecting new syntax to be a syntax error 2023-01-19 14:44:36 +00:00
async_star_test.dart
await_for_test.dart
await_pauses_test.dart
basic_test.dart
cancel_and_throw_in_finally_test.dart
cancel_test.dart
cancel_while_paused_at_yield_test.dart
cancel_while_paused_test.dart
concat_test.dart
covariant_type_test.dart
dcall_type_test.dart
error_test.dart
loops_test.dart
no_cancel2_test.dart
no_cancel_test.dart
pause2_test.dart Reland "[vm] Fix some async* semantics issues: Only run generator if there's active subscription (not paused/cancelled)" 2022-04-26 12:01:34 +00:00
pause_test.dart
regression_2238_test.dart
regression_23116_test.dart
regression_47610_test.dart
regression_fisk_test.dart
stream_take_test.dart
take_reyield_test.dart
throw_in_catch_test.dart Reland "[vm] Fix some async* semantics issues: Only run generator if there's active subscription (not paused/cancelled)" 2022-04-26 12:01:34 +00:00
utils.dart
void_async_star_test.dart
yield_expressions_test.dart
yield_from_catch_test.dart
yield_statement_context_test.dart
yield_test.dart
yieldstar_test.dart