dart-sdk/tests
Tess Strickland 844a5176ff [vm] Fix ArgumentsDescriptor uses in DoArgumentTypesMatch.
Use of PositionalCount() and PositionAt() as indices in the arguments
array must account for the type arguments if present. Otherwise, we'll
either skip checking the last positional argument (in the former case)
or check against the wrong arguments (in the latter case).

In nosuchmethod_forwarding_arguments_test.dart, add cases that check for
the above mistakes.

In require_named_args_strong_test.dart, use the more specific
throwsTypeError or throwsNoSuchMethod checks instead of the generic
throwsError to ensure the correct error is thrown.

TEST=Changed tests to add extra cases for failures that can happen.

Cq-Include-Trybots: luci.dart.try:vm-kernel-linux-debug-x64-try,vm-kernel-nnbd-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-nnbd-linux-debug-x64-try
Change-Id: If5e6c310d36d244bb0650ded54e32e583732584e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171947
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2020-11-16 11:53:39 +00:00
..
co19 [co19] turn off some type alias tests in analyzer and external variables tests on dart2js 2020-11-11 08:34:18 +00:00
co19_2 Skip VM tests that hang on Windows 2020-10-30 11:20:43 +00:00
corelib [tests] Split corelib{,_2}/list_concurrent_modify_test 2020-11-05 19:46:35 +00:00
corelib_2 [tests] Split corelib{,_2}/list_concurrent_modify_test 2020-11-05 19:46:35 +00:00
dart2js [dart2js] Kernel transformer expansion for List.generate 2020-11-11 04:27:22 +00:00
dart2js_2 Rename is{Strong,Weak}Mode to has{Sound,Unsound}NullSafety 2020-11-05 14:26:53 +00:00
dartdevc Fix ddc debugger_test 2020-11-02 23:31:30 +00:00
dartdevc_2 Fix ddc debugger_test 2020-11-02 23:31:30 +00:00
ffi [test/ffi] Add struct stack alignment test 2020-11-06 13:54:23 +00:00
ffi_2 [test/ffi] Add struct stack alignment test 2020-11-06 13:54:23 +00:00
language [vm] Fix ArgumentsDescriptor uses in DoArgumentTypesMatch. 2020-11-16 11:53:39 +00:00
language_2 [vm] Fix ArgumentsDescriptor uses in DoArgumentTypesMatch. 2020-11-16 11:53:39 +00:00
lib [package:js] Add/modify tests for JS interop subtyping 2020-11-11 19:28:13 +00:00
lib_2 Remove uses of, and need for, Expect.throwsNullCheckedError. 2020-11-11 13:30:30 +00:00
modular [cfe] Ensure that default values on synthesized constructor are included in outlines 2020-09-29 11:09:14 +00:00
standalone [gardening] Add two more needed resources for standalone/io/test_extension_fail_test.dart 2020-11-14 10:30:27 +00:00
standalone_2 [gardening] Add two more needed resources for standalone/io/test_extension_fail_test.dart 2020-11-14 10:30:27 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.