Commit Graph

204 Commits

Author SHA1 Message Date
Paul Berry e3cb466a5f Add a "skipVm" option to fasta tests.
This makes it easy to identify tests that pass in Fasta but fail in
the VM.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2869953002 .
2017-05-08 16:10:21 -07:00
Konstantin Shcheglov cc91d04514 Use FileSystem to read files in SourceLoader and TranslateUri.
This is a prerequisite for writing fast unit tests, as I would like
to do while working on the incremental kernel driver.

R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/2865843002 .
2017-05-06 13:09:28 -07:00
Paul Berry 4e481ccee5 Separate updateComments from updateExpectations.
Previous to this CL, the updateExpectations flag had two effects:

- It caused ".expect" files to be updated.

- It caused embedded expectations comments in ".dart" files (of the
  form "/*@key=value*/") to be updated.

I'm finding that I frequently want to update the former but not the
latter, so I'm splitting this into two separate flags.

With this CL, updateExpectations only updates ".expect" files, and
updateComments only updates embedded expectations comments.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2863773004 .
2017-05-05 12:04:53 -07:00
Sigmund Cherem 06189b271a loader, target, diet_listener moved
from front_end/lib/src/fasta/analyzer/
   to   analyzer/lib/src/fasta/

analyzer_compile and compile_platform_dartk moved
   from front_end/lib/src/fasta/analyzer/
   to   front_end/tool/_fasta/

front_end/src/fasta/testing/* continues to have some shared testing logic,
 - logic to compute the patched sdk is moved up one level
 - TestContext, Run, and suite.dart (which depend on analyzer) moved to pkg/front_end/test/fasta/testing/
 - only a copy of TestContext is duplicated under pkg/kernel/test/closure/.

R=ahe@google.com, paulberry@google.com

Review-Url: https://codereview.chromium.org/2828583003 .
2017-04-25 13:16:14 -07:00