dart-sdk/pkg/test_runner/test
Jens Johansen 214cdbdc81 [test_runner] Fix RangeError when parsing static errors
Previously it tested if it was at the end of file (defined as
_currentLine >= _lines.length), if it was not it would try to read the
_next_ line (_peek(1)), meaning that if _currentLine = _lines.length - 1
it would _peek(1) and try to read _lines[lines.length] and crash with a
range error. This CL fixes it by actually checking if it can safely peek
the amount it wants to.

Change-Id: I2e66c539e823f0b39bd0da39e2b2277a9e6c9501
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150624
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-10 17:33:37 +00:00
..
dependency_graph_test.dart
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 Add support for web static error tests to TestFile and StaticError. 2020-05-13 01:06:14 +00:00
test_file_test.dart Add support for web static error tests to TestFile and StaticError. 2020-05-13 01:06:14 +00:00
test_runner_test.dart Simplify how the list of TestCases for each TestConfiguration is made. 2019-09-11 23:05:59 +00:00
test_suite_test.dart Add support for test requirements. 2019-09-13 00:27:30 +00:00
update_errors_test.dart [test_runner] Fix RangeError when parsing static errors 2020-06-10 17:33:37 +00:00
utils.dart Add support for web static error tests to TestFile and StaticError. 2020-05-13 01:06:14 +00:00