dart-sdk/tests/language_2
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
..
abstract [test] Replace non-implemented @DontInline() annotations 2021-07-26 13:22:31 +00:00
accessor_conflict Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
argument [analyzer] NOT_ENOUGH_POSITIONAL_ARGUMENTS 2022-10-11 17:56:11 +00:00
assert [dart2wasm] Emit code for assert initializers. 2023-01-05 00:23:40 +00:00
assign Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
async Spelling tests 2023-01-19 16:24:29 +00:00
async_nested Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
async_star [tests] Fix expectations in language/async_star/async_star_await_for_test 2023-02-27 16:25:50 +00:00
await [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
bool Fix context type for conditionals of conditional expressions. 2022-01-24 01:25:38 +00:00
call [vm] Fix call-through-getter runtime handling. 2022-12-08 17:48:49 +00:00
canonicalize Spelling tests language 2022-12-19 16:30:06 +00:00
cascade Remove nbsp 2022-10-17 08:18:49 +00:00
class [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
closure [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
compile_time_constant [analyzer] NOT_ENOUGH_POSITIONAL_ARGUMENTS 2022-10-11 17:56:11 +00:00
const Issue 51046. Implement primitive equality. 2023-02-18 06:22:04 +00:00
constants_2018 Fixed various typos in a lot of files 2022-07-25 12:21:59 +00:00
constructor Move seven more Hints to be StaticWarnings: 2023-01-12 19:17:35 +00:00
control_flow_collections Simplify asyncExpectThrows and enhance Expect.throws. 2022-01-06 17:06:47 +00:00
covariant Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
covariant_override Fix typos 2022-06-15 11:08:28 +00:00
deferred [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
double Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
double_literals Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
dynamic [vm] Better implementation of hashCode function. 2022-10-20 20:31:20 +00:00
enum Spelling tests language 2022-12-19 16:30:06 +00:00
exception [dart2wasm] Fix reversal of break labels crossing finally. 2023-02-15 10:24:08 +00:00
export [test] Fix bug in export/duplicate_import_libd 2021-06-30 07:44:52 +00:00
extension_methods Fix typos 2022-06-10 15:48:54 +00:00
factory [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
field [dart2wasm] Initialize the function class early. 2022-03-18 17:44:57 +00:00
final Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
fixed_size_int master branch to main 2021-09-15 06:22:23 +00:00
function Spelling tests language 2022-12-19 16:30:06 +00:00
function_subtype Spelling tests standalone 2023-01-23 12:55:22 +00:00
function_type Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
generic Spelling tests language 2022-12-19 16:30:06 +00:00
generic_methods [cfe] Refactor bounds checking 2022-05-17 14:36:19 +00:00
getter Fix reporting of INSTANCE_ACCESS_TO_STATIC_MEMBER from within an extension. 2021-10-17 06:22:30 +00:00
identifier [cfe] Refactor TypeBuilders 2022-03-28 18:22:50 +00:00
identity Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
if Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
if_null [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
implicit_creation Spelling tests language 2022-12-19 16:30:06 +00:00
implicit_downcast_during Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
import [cfe] Include import paths in error for unavailable dart: libraries 2022-11-08 14:54:17 +00:00
inference Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
inference_update_2 Spelling pkg dev compiler 2023-01-26 09:12:41 +00:00
initializer_assert
initializing_formal Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
instance [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
instantiate_to_bound master branch to main 2021-09-15 06:22:23 +00:00
interceptor Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
interface [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
invalid_returns master branch to main 2021-09-15 06:22:23 +00:00
is [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
label [parser] Add beforeSynthetic to SyntheticStringToken 2021-08-30 11:56:30 +00:00
lazy Spelling tests 2023-01-19 16:24:29 +00:00
least_upper_bound Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
library [gardening] Fix env_test/has_mirror_support. 2022-01-14 23:33:11 +00:00
list [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
loop Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
main Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
malbounded [cfe] Refactor bounds checking 2022-05-17 14:36:19 +00:00
malformed [3.0 alpha][test] Remove use of NullThrownError 2022-12-15 23:33:18 +00:00
map [js_runtime] Use custom hashCode for GeneralConstantMap 2021-07-16 22:58:02 +00:00
metadata [cfe] Refactor detection of instance type variable access in static context 2021-10-05 11:58:04 +00:00
method Spelling pkg dev compiler 2023-01-26 09:12:41 +00:00
mixin Fix typos 2022-06-15 11:08:28 +00:00
mixin_constructor_forwarding Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
mixin_declaration Spelling pkg dev compiler 2023-01-26 09:12:41 +00:00
new [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
no_such_method Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
nosuchmethod_forwarding master branch to main 2021-09-15 06:22:23 +00:00
null [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
null_aware [3.0 alpha] Update CFE messages for Dart 3 sound null safety by-default 2022-12-09 16:55:03 +00:00
number [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
operator [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
optimize Spelling tests language 2022-12-19 16:30:06 +00:00
override Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
parameter [analyzer] NOT_ENOUGH_POSITIONAL_ARGUMENTS 2022-10-11 17:56:11 +00:00
part Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
prefix [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
private [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
propagate Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
redirecting Remove references to dartfmt in various comments and docs. 2021-10-01 00:56:14 +00:00
reg_exp Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
regress Spelling tests 2023-01-19 16:24:29 +00:00
resolution Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
return Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
rewrite Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
script Delete unused files in test folders. 2021-05-19 08:05:05 +00:00
set_literals Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
setter Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
spread_collections Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
stack_trace Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
static [ddc] Adding support for static setters of const fields 2022-04-01 23:51:15 +00:00
string [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
subtyping_dynamic
subtyping_static Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
super [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
superinterface_variance Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
switch [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
symbol Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
sync_star Spelling tests language 2022-12-19 16:30:06 +00:00
syntax Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
this Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
top_level Delete unused files in test folders. 2021-05-19 08:05:05 +00:00
type [cfe] Check primitive equals in legacy libraries 2022-02-10 22:13:14 +00:00
type_object [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
type_promotion Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
type_variable [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
typedef Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
unsorted [Reland][cfe] Support external constructor with final fields 2023-01-17 17:29:28 +00:00
variable Fix year and comma in header. 2023-02-08 17:45:40 +00:00
vm Spelling pkg analyzer lib 2023-01-25 14:08:27 +00:00
void master branch to main 2021-09-15 06:22:23 +00:00
await_type_error_test.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
await_type_test.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
dynamic_type_helper.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
language_2.status [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
language_2_analyzer.status [tests] Cleanup test with absent deferred library 2022-11-03 17:06:42 +00:00
language_2_dart2js.status [dart2js, ddc] Skip flaky tests 2023-02-13 23:44:59 +00:00
language_2_dartdevc.status [dart2js, ddc] Skip flaky tests 2023-02-13 23:44:59 +00:00
language_2_kernel.status [gardening] Mark all tests as slow in debug-ia32 mode 2022-07-21 10:22:45 +00:00
language_2_precompiled.status [tests] Fix expectations in language/async_star/async_star_await_for_test 2023-02-27 16:25:50 +00:00
language_2_spec_parser.status Spelling tests language 2022-12-19 16:30:06 +00:00
language_2_vm.status [tests] Fix expectations in language/async_star/async_star_await_for_test 2023-02-27 16:25:50 +00:00
library1.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
library2.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
library10.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
library11.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
library12.dart Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
record_literal_problems_test.dart [parser] Empty record 2022-10-06 06:34:58 +00:00
record_literal_test.dart [cfe] Use reportIfNotEnabled in endRecordLiteral 2022-10-04 09:30:07 +00:00
record_type_problems_test.dart [parser] Empty record 2022-10-06 06:34:58 +00:00
record_type_test.dart [cfe] Use reportIfNotEnabled in endRecordLiteral 2022-10-04 09:30:07 +00:00
static_type_helper.dart Add unawaited function and ignore extensions member. 2021-06-22 20:03:13 +00:00
syntax_helper.dart [testing] Rely on language versions in the analyzer tests 2021-06-02 07:47:46 +00:00