dart-sdk/pkg/test_runner/test
Lasse R.H. Nielsen e85042b403 Allow error test expectations to omit the implicit line.
Error tests with explicit line/column markers, like
 [error line 123, column 456]
currently require both "line" and "column".
All existing occurrences of `[error line 123, column 456]` always
refer to the most recent non-comment line *just like* the `// ^^` lines,
so omitting the line, and having the most recent non-comment line
as the *default* line, seems reasonable.

This CL makes the line optional, the new format without a "line" entry
will be just `[error column 456]`.

This allows files to change the number of lines in the code without
invalidating any later expectations.
(Or, say, remove a comment line at the top of the file!)

Omits the line entry by default when writing/updating expectations.

Change-Id: Ia0c95bf804a1c6b11c0c1621bfd481e43f8fa0c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200429
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2021-06-14 12:00:13 +00:00
..
dependency_graph_test.dart
experiment_test.dart [pkg/test_runner] Add test for options passing 2021-05-18 12:10:13 +00:00
options_test.dart Make the NNBD command-line options less, uh, half-baked. 2019-09-10 22:39:19 +00:00
skipping_dart2js_compilations_helper.dart
skipping_dart2js_compilations_test.dart Enable "omit_local_variable_types" lint in test_runner and fix violations. 2019-12-17 19:48:54 +00:00
static_error_test.dart Improve the highlight range for conflicting_generic_interfaces 2021-05-18 20:42:33 +00:00
test_file_test.dart Add support for context messages to static error tests. 2021-03-30 18:41:21 +00:00
test_runner_test.dart fix sort_directives violations 2021-04-21 00:13:48 +00:00
test_suite_test.dart [testing] Fix name expansion for service tests with multiple VMOptions 2020-10-13 12:56:57 +00:00
update_errors_test.dart Allow error test expectations to omit the implicit line. 2021-06-14 12:00:13 +00:00
utils.dart Add support for context messages to static error tests. 2021-03-30 18:41:21 +00:00