dart-sdk/tests/standalone
William Hesse cd2c566bcf Revert "Tweak expect.dart library."
This reverts commit ff5f391c0a.

Reason for revert: The expect library is used by Flutter engine, and some of its tests use assertStatementsEnabled. There should be a migration path that doesn't require an atomic change, like adding the replacement api before removing the old one.

Original change's description:
> Tweak `expect.dart` library.
>
> Make API more consistent for a few methods.
> Reduce the number of language features used in tests:
> * Never iterating an iterable, always converting it
>   using `.toList()` first and iterating using indices
>   (fx `setEquals`).
>   Also require a `List` in places where an `Iterable`
>   wasn't necessary.
> * Avoid doing complicated computations that are also
>   used for the error message. Do simple check first,
>   then recompute to get better error messages
>   (fx `allDistinct`).
>
> Renamed some rarely used members for consistency
> (`stringContainsInOrder`->`containsInOrder`,
> where other string-contains functions just start
> with `contains`, and `containsOneOf` -> `containsAny`
> to match `Iterable.any` phrasing, and also it accepts
> if containing at least one, not precisely one.)
>
> Removed a function that wasn't used anywhere.
>
> Moved `assertStatementsEnabled` to `variations.dart` as `asserts`.
> Removed `typeAssertionsEnabled` and `checkedModeEnabled`. The former used in one place, where it was replaced with `checkedImplicitDowncasts` from `variations.dart`, the latter wasn't used anywhere.
>
> Deprecates `package:expect/minitest.dart`. It was never intended
> to be used for new tests, only as a help to convert existing tests
> written against `package:unit_test`.
> All existing imports marked as `// ignore: deprecated_member_use`.
>
> Change-Id: I07e21d4c0f3ccf11b82ee34af2668fdbb22264d2
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352360
> Reviewed-by: Slava Egorov <vegorov@google.com>
> Reviewed-by: Ömer Ağacan <omersa@google.com>
> Reviewed-by: Nate Bosch <nbosch@google.com>
> Reviewed-by: Stephen Adams <sra@google.com>
> Commit-Queue: Lasse Nielsen <lrn@google.com>

Change-Id: I360b4347470a0bb2b63c3108e2b83ee2a771bf3f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362020
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: William Hesse <whesse@google.com>
2024-04-09 18:10:57 +00:00
..
deferred Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
http_launch_data Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
io Revert "[io] Fix a bug where Process.stdin.add exceptions could not be caught" 2024-03-25 21:03:12 +00:00
package [gardening] Make standalone/package/package_isolate_test a no-op in AOT. 2023-08-11 21:06:10 +00:00
stack_trace
array_bounds_check_generalization_test.dart
assert_assignable_canon_test.dart
byte_array_view_optimized_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
bytedata_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
check_class_cha_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
check_for_aot_snapshot_jit_test.dart Revert "Tweak expect.dart library." 2024-04-09 18:10:57 +00:00
check_null_cha_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
constant_left_shift_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
deferred_transitive_import_error_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
deny_listed_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
deoptimization_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_hash_distribution_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_smi_comparison_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_temp_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_to_int_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
dwarf_stack_trace_invisible_functions_test.dart [gardening] Fix off-by-one error introduced after added import. 2024-02-27 11:41:45 +00:00
dwarf_stack_trace_obfuscate_test.dart [gardening] Fix off-by-one error introduced after added import. 2024-02-27 11:41:45 +00:00
dwarf_stack_trace_test.dart Revert "Tweak expect.dart library." 2024-04-09 18:10:57 +00:00
env_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
float_array_static_test.dart Migrate standalone tests off @compile-error. 2023-04-19 14:17:39 +00:00
float_array_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
from_env_test.dart Constant evaluator won't assume all dart.library.x entries exist. 2024-03-23 11:18:46 +00:00
gn_py_test.dart Reland "[build] Handle cases for dart_target_arch != target_arch and target_cpu != host_cpu." 2023-03-22 14:57:27 +00:00
http_launch_test.dart [VM / Tests] Fix tests to use '-verbosity=warning' 2021-01-27 19:06:39 +00:00
int_array_deopt.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
int_array_load_elimination_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
int_array_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
int_list_test.dart [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
lazy_async_stack_test.dart [vm] Cleanup --lazy-async-stacks VM option 2022-06-10 13:41:24 +00:00
left_shift_bit_and_op_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
link_natives_lazily_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
map_insert_remove_oom_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
medium_integer_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_allow_absolute_addresses_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_lazy_dispatchers_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_profiler_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_such_method_error_with_invocation_test.dart
no_support_ast_printer_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_debugger_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_disassembler_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_il_printer_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_service_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_timeline_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
number_identity_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
oom_error_stacktrace_test.dart [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
pair_location_remapping_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
pie_test.dart Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
pow_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
priority_queue_stress_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
regress31114_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_25335_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_26031_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
regress_28854_1_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
regress_28854_2_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
regress_29350_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_29695_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_41329_absolute_test.dart Skip regress_41329 tests on precompiled runtimes 2020-09-30 16:18:34 +00:00
regress_41329_relative_test.dart Reland "[ VM / DartDev ] Launch DartDev in an isolate within a single main Dart process" 2020-07-21 16:23:18 +00:00
regress_42092_script.dart [ DartDev ] Ignore SIGINT in DartDev process 2020-07-06 03:02:00 +00:00
regress_42092_test.dart [ VM ] Add delay between SIGINTs to fix flakiness of regress_42092_test 2021-06-29 01:36:32 +00:00
regress_45347.dart [vm/lib] Fix for https://github.com/dart-lang/sdk/issues/45347 2023-10-11 21:51:02 +00:00
regress_52691_test.dart [vm/runtime] - Fix RegExp exception messages (issue 52691) 2023-07-06 21:10:28 +00:00
regress_52715_test.dart [gardening] Don't attempt to measure RSS under sanitizers or with reload. 2023-06-29 19:39:05 +00:00
regress_53519_test.dart [test] Disable regress_53519_test in obfuscated/dwarf mode 2024-03-07 00:56:33 +00:00
slowpath_safepoints_test.dart [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
standalone.status [test] Disable regress_53519_test in obfuscated/dwarf mode 2024-03-07 00:56:33 +00:00
standalone_analyzer.status
standalone_kernel.status [vm] Do not bundle dart.lib in the Dart SDK 2024-02-15 14:09:37 +00:00
standalone_precompiled.status [io] Make it possible to change the line ending output by stdout and stderr. 2024-02-16 20:06:03 +00:00
standalone_vm.status [gardening] Mark non_utf8_output_test accordingly in status file. 2024-02-01 19:44:50 +00:00
string_overflow_test.dart Avoid crashes in string concatenation 32-bit integer overflow test 2023-10-27 12:36:29 +00:00
typed_array_int64_uint64_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
typed_array_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
typed_data_isolate_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
typed_data_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
typed_data_view_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
unboxed_int_converter_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
verbose_gc_to_bmu_script.dart [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
verbose_gc_to_bmu_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00