Files
sdk/tests/standalone
Bob Nystrom 92267afc66 Refactor and clean up the status file parsing code. - Make the parser less error tolerant. The expression parser used to ignore any unrecognized tokens, which means a status like "RuntimeError CompileError" (not the missing comma) was parsed as simply "RuntimeError", which seems bad. Now it reports an error. Fixed a couple of status files that thought they were setting statuses that they weren't (!).
- Separate out parsing a status file from applying the environment to
  determine which sections are active. This makes it possible to, for
  example, generate expectation sets for multiple environments without
  having to reparse each time.

- Simplify expression parsing. Remove set expressions since they weren't
  used for anything useful. A test's expectations are a simple
  comma-separated list and don't need anything beyond that. Merge
  Scanner and Tokenizer since the latter was a glorified function.

- Make more names private so that it's clearer what's used outside of
  various libraries.

- Generally modernize the style.

- Add *lots* of documentation.

Again, there should be no behavioral changes. I ran:

  ./tools/test.py -m release,debug -c none,dart2js,dart2analyzer -r none,vm,d8 corelib

Before and after the change and verified that the output was the same
(aside from timing).

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2891753003 .
2017-05-18 12:42:52 -07:00
..
2016-06-08 07:12:52 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00
2017-04-17 14:53:02 -07:00