Commit Graph

4870 Commits

Author SHA1 Message Date
Erik Ernst 40b6741778 Adds support for syntax error in tests to test.py.
This CL modifies the Dart source used from test.py such that it takes
`syntax error` into account as an expected outcome in test files (so
that we can have `//# 01: syntax error` with a similar meaning as
`//# 01: compile-time error`).

For all tools except the spec_parser, `syntax error` is the same
outcome as `compile-time error`; that is, nobody else will see the
difference.

For the spec_parser, `syntax error` is the outcome where parsing has
failed; `compile-time error` is taken to mean some other compile-time
error, i.e., the spec_parser is expected to _succeed_ when the
expected outcome is `compile-time error`.

Test files in language and language_2 have been adjusted to use the
outcome `syntax error` where appropriate.

The status files in language and language_2 for the spec_parser have
been adjusted such that they fit all the new `syntax error` outcomes
in test files.

Other status files have been adjusted in a few cases where tests were
corrected (because a compile-time error which was clearly not intended
to be a syntax error turned out to be caused by a typo, which means
that the actual compile-time error has never been tested).

The spec grammar Dart.g was adjusted in a few cases, when some bugs
were discovered. In particular, the treatment of Function has been
changed: It is now known by the parser that Function does not take
any type arguments. This makes no difference for developers, because
they cannot declare a type named Function anyway, but it means that
a number of tricky parsing issues were resolved.

Dart.g was also adjusted to allow `qualified` to contain three
identifiers, which is an old bug (preventing things like metadata on
the form `@p.C.myConst`).

Change-Id: Ie420887d45c882ef97c84143365219f8aa0d2933
Reviewed-on: https://dart-review.googlesource.com/18262
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-11-06 08:56:09 +00:00
Jenny Messerly 384678e4b3 port DDC's code_generator to Kernel
Change-Id: I2b6a5f56a69f5d3a965aefc3f8d4550d5940ac5a
Reviewed-on: https://dart-review.googlesource.com/17980
Reviewed-by: Vijay Menon <vsm@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2017-11-04 22:17:56 +00:00
Morten Krogh-Jespersen 2464360c5c Add ddc builders to the test matrix.
Bug:
Change-Id: Ie5d01aefacf84c323be504e904e6c8cedb4bfa04
Reviewed-on: https://dart-review.googlesource.com/18181
Reviewed-by: William Hesse <whesse@google.com>
2017-11-03 07:39:47 +00:00
Morten Krogh-Jespersen f18d6e25e9 Revert "Add vm-linux-debug builder to CQ."
This reverts commit 939e295f9a.

Bug:
Change-Id: Iae0d040d00254e85904a5cbd9cb3b889aafcc0d6
Reviewed-on: https://dart-review.googlesource.com/17880
Reviewed-by: Martin Kustermann <kustermann@google.com>
2017-11-01 14:17:40 +00:00
Peter von der Ahé b7060891c1 Mention that libraries.json is generated.
Change-Id: I48fcc8443a0980c435e87642cf6a7aede07e68f0
Reviewed-on: https://dart-review.googlesource.com/17161
Commit-Queue: Peter von der Ahé <ahe@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2017-11-01 12:55:42 +00:00
Morten Krogh-Jespersen 939e295f9a Add vm-linux-debug builder to CQ.
Bug:
Change-Id: I17e861080021ded757a0d5c0c5b02c739d4f3e44
Reviewed-on: https://dart-review.googlesource.com/17780
Reviewed-by: William Hesse <whesse@google.com>
2017-11-01 11:17:51 +00:00
Morten Krogh-Jespersen 8668511f85 Add asan vm builders to test matrix.
Bug:
Change-Id: I366e419d9f0d9a9c18a8b6d45a12330f856acfd4
Reviewed-on: https://dart-review.googlesource.com/17103
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
2017-11-01 09:33:40 +00:00
Jacob Richman 8b221d13a4 Fix ddc debugger_test Fix regression in custom formatters due to change in metadata signatures to use Object.__proto__ instead of a null __proto__.
Bug:
Change-Id: I68fdb980e777b7c3f335fd6b57181134e3159cc3
Reviewed-on: https://dart-review.googlesource.com/17060
Commit-Queue: Jacob Richman <jacobr@google.com>
Reviewed-by: Jacob Richman <jacobr@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-10-31 19:45:27 +00:00
Morten Krogh-Jespersen 0c53270b53 Small changes to compare_failures tool.
Remaining comments from previous CL implemented:
https://dart-review.googlesource.com/c/sdk/+/17222
Bug:
Change-Id: I5be455dfd92b0117f29185bf7b02bd83cac6a34d
Reviewed-on: https://dart-review.googlesource.com/17420
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-10-31 11:16:29 +00:00
Morten Krogh-Jespersen d27a195e9e Add vm reload configuration to test matrix.
Bug:
Change-Id: I568ab3902ebdfd7350edf2aebf213131aa4f5212
Reviewed-on: https://dart-review.googlesource.com/16948
Reviewed-by: William Hesse <whesse@google.com>
2017-10-31 07:26:01 +00:00
Morten Krogh-Jespersen 1e1bf0b64d Add optcounter builders to test matrix.
Bug:
Change-Id: I2f5ad3b146015781d1a0ce2675d43db383e5faec
Reviewed-on: https://dart-review.googlesource.com/16952
Reviewed-by: William Hesse <whesse@google.com>
2017-10-31 07:25:23 +00:00
Morten Krogh-Jespersen 524483241d Add vm precomp builder group to test matrix.
Bug:
Change-Id: Ibac8fc35f1462e1108230704b91a5f475f013704
Reviewed-on: https://dart-review.googlesource.com/16945
Reviewed-by: William Hesse <whesse@google.com>
2017-10-31 07:24:36 +00:00
Morten Krogh-Jespersen 7f875c6e01 Make compare failures work with logdog instead of build bot data.
Build bot data is no longer maintained and all logs are moving over to logdog.

Bug:
Change-Id: If3526bde1c950b936d9bf1e67bb53d19bffe7177
Reviewed-on: https://dart-review.googlesource.com/17222
Reviewed-by: William Hesse <whesse@google.com>
2017-10-31 07:22:57 +00:00
Morten Krogh-Jespersen 359eddc256 Make logdog rpc the primary way to interact with logdog.
Additionally, combine all stream chunks into a single buffer, separated by new
line.

Bug:
Change-Id: I0c56aa1e99e76ee7ff578c84dc9e3ef534f5e63f
Reviewed-on: https://dart-review.googlesource.com/17221
Reviewed-by: William Hesse <whesse@google.com>
2017-10-31 07:22:57 +00:00
Morten Krogh-Jespersen 63d3a1eae2 Add fast_tests option to test.py to skip slow and timeout.
This should improve running tests on the CQ.

Bug:
Change-Id: I8d749dfccd0611eea4f64d2844c0e7da6bf01502
Reviewed-on: https://dart-review.googlesource.com/17102
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
2017-10-30 15:55:14 +00:00
Morten Krogh-Jespersen a7da814d80 Add app builder group to test matrix.
Bug:
Change-Id: I843f7349a97aac1509bf801a35258f22fe477759
Reviewed-on: https://dart-review.googlesource.com/16943
Reviewed-by: William Hesse <whesse@google.com>
2017-10-30 09:40:54 +00:00
Morten Krogh-Jespersen c3a7e0dfcd Add meta description to configurations in the test-matrix.
Bug:
Change-Id: I5933ec9e62c7b8901047f2cf3f91d4ebdb1691fb
Reviewed-on: https://dart-review.googlesource.com/16942
Reviewed-by: William Hesse <whesse@google.com>
2017-10-30 09:27:56 +00:00
Morten Krogh-Jespersen d687892b9d Add vm kernel builder group to test matrix.
Bug:
Change-Id: I1db12419c4ce678f02fd363964e7bf76a7f8670b
Reviewed-on: https://dart-review.googlesource.com/16944
Reviewed-by: William Hesse <whesse@google.com>
2017-10-30 09:27:44 +00:00
Johnni Winther d4a6eec5f5 Fix 'results.dart get failures' for Windows.
Change-Id: I7bb88e57399acd33af369dcb4c78445608290b31
Reviewed-on: https://dart-review.googlesource.com/16960
Reviewed-by: Morten Krogh-jespersen <mkroghj@google.com>
2017-10-30 08:29:34 +00:00
Bob Nystrom ba84855c0a Migrate the lingering language_strong tests over to language_2.
Change-Id: I4d60b650a2146c1d9be0fd0c5f98eac85f9e2eb1
Reviewed-on: https://dart-review.googlesource.com/16333
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-10-27 23:44:08 +00:00
Bob Nystrom 65411fe34f Pick default compiler and runtime arguments intelligently.
If you pass "-c" or "-r", but not both, choose a smart default for the
other instead of simply yelling at the user and telling them they
forgot something.

Change-Id: Ic47a20fa8f137a8f6488f16cf883839999e2225b
Reviewed-on: https://dart-review.googlesource.com/16905
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-10-27 22:11:07 +00:00
Bob Nystrom cf8a477cb7 Support test packages in dartdevk in test.dart.
This allows dartdevk to compile tests that import packages like expect.
There are a few pieces to this:

- Add support to build_pkgs.dart to build the kernel summaries for each
  test package (in addition to the analyzer summaries it already
  builds).

- Plumb that through the dartdevc_test target in the GN build as well.

- While we're at it, use GN to build the ddc_sdk.dill file and have
  test.dart load that one instead of the manually built one from calling
  ./tool/kernel_sdk.dart.

- Add command-line arguments to dartdevk for passing in the path to the
  SDK summary and the other summaries to compile against.

- Fix a little typo in processed_options.dart that was preventing it
  from resolving "package:" URIs.

- In test.dart, when compiling a test, link in the summaries for all of
  the test packages.

At runtime, it still uses the JS for those packages generated from the
old analyzer-based front end since the kernel-based compiler isn't
complete enough to compile any of those packages yet.

With all of this, if I change a test to:

  import "package:expect/expect.dart";

  main() {
    Expect.equals("a", "b");
  }

Then it compiles but fails at runtime. The compiler is completing, but
the generated code has some bugs. I don't know enough to fix them
myself, but here's what I've found out:

- In _libraryToModule(), the Library we get from kernel has a null
  fileUri, so this returns an empty string. That in turn means the
  generated JS tries to use "$" as the module name.

  Using this works around it temporarily:

      if (moduleName.isEmpty) moduleName = library.name;

- In _emitTopLevelNameNoInterop(), it doesn't handle the case where the
  NamedNode is a static method on a class. It just generates the library
  and method name, skipping the class, so "Expect.equals(1, 2)" gets
  compiled to "expect.equals(1, 2)" instead of
  "expect.Expect.equals(1, 2)".

Change-Id: I6bd9d98bc9706965160d8fb7cf70b20eeebab3a8
Reviewed-on: https://dart-review.googlesource.com/16687
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2017-10-27 21:25:58 +00:00
Morten Krogh-Jespersen 6365369a39 Refactoring failures tool
Refactoring of failures tool with:

Reducing the time it takes for looking up status files by dividing entries in
the status file by wildcard and none-wildcard. Speciel attention is needed for
multitests.

Not report an error when Skip or SkipByDesign is added to the status files.

Report which status files expectations are taken from.

Bug:
Change-Id: I56a05a9bd79a5206ef5287a58d341165d98aaefc
Reviewed-on: https://dart-review.googlesource.com/16441
Reviewed-by: William Hesse <whesse@google.com>
2017-10-27 09:12:06 +00:00
Jason Simmons 81c8e2bfc4 Remove Flutter diagnostic server
Bug:
Change-Id: I729f60ad310c3d864273687fe46b9b93d4696772
Reviewed-on: https://dart-review.googlesource.com/16882
Reviewed-by: Alexander Aprelev <aam@google.com>
2017-10-27 03:50:59 +00:00
Morten Krogh-Jespersen 27ddeb0b2a Update test.py to write an empty result.log when all tests are known.
This will make sure that the result.log file will always exist, even if no tests
are run. This also means that the delete result.log step for recipes can be
removed.

Bug:
Change-Id: Idf097acb990b047146a874715f992657deacf65a
Reviewed-on: https://dart-review.googlesource.com/16483
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
2017-10-26 10:38:31 +00:00
Morten Krogh-Jespersen 9f4da5c90a Update readme for result failures tool.
Updating the readme to better give a quick overview of how to use the results failures tool.
Bug:
Change-Id: Id6d4492e6a55e651886e9ccbbc88965248e1ac88
Reviewed-on: https://dart-review.googlesource.com/16740
Reviewed-by: William Hesse <whesse@google.com>
2017-10-26 09:41:50 +00:00
William Hesse fabb04d47c Make test.dart always create a result.log file when --write-result-log is set
Before this, if zero tests were run the file wasn't created.

Bug:
Change-Id: I446a90eeb68dca3ee1fe66d473cd55887c206bc1
R=athom@google.com
CC=mkroghj@google.com
Reviewed-on: https://dart-review.googlesource.com/16527
Reviewed-by: Alexander Thomas <athom@google.com>
2017-10-25 17:27:15 +00:00
Morten Krogh-Jespersen 65656ca8e3 Improve the description of the failures gardening tool.
Bug:
Change-Id: I02d0612c81d214af2c9c2701bb6ae3312473cabd
Reviewed-on: https://dart-review.googlesource.com/16500
Reviewed-by: William Hesse <whesse@google.com>
2017-10-25 16:01:55 +00:00
William Hesse 1d0cd03ded Skip browser testing on tests with compile-time errors in all cases.
There was an error so these tests were run unless the --report flag was
present. This fixes that error. Testing for compile-time errors in non-browser
cases is sufficient.

Bug:
Change-Id: Ifeed1a3835297a9308a94de15cabfa119604c75a
R=mkroghj@google.com
Reviewed-on: https://dart-review.googlesource.com/14480
Reviewed-by: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2017-10-25 14:16:41 +00:00
Morten Krogh-Jespersen 7ed0d9b356 Add sdk builders to the test matrix.
Bug:
Change-Id: Ic827f641fd9e952092700662897178f519f3a52b
Reviewed-on: https://dart-review.googlesource.com/16522
Reviewed-by: William Hesse <whesse@google.com>
2017-10-25 13:32:25 +00:00
Morten Krogh-Jespersen 7d64d0bc39 Add VM block configuration to the test matrix.
Bug:
Change-Id: Iee6fed8137fe157005dca1c3fd34879f58fa3a10
Reviewed-on: https://dart-review.googlesource.com/16480
Reviewed-by: Alexander Thomas <athom@google.com>
2017-10-25 10:49:24 +00:00
Morten Krogh-Jespersen 937ccb89ad Add test-matrix to tools/bots with vm builders.
Bug:
Change-Id: I97bf3884e62552c41784984e6ce927bafd3f09a3
Reviewed-on: https://dart-review.googlesource.com/16140
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2017-10-25 07:47:47 +00:00
Morten Krogh-Jespersen 0a075daaa1 Status files class for finding expectations.
Bug:
Change-Id: I231507facb448d327a68b987b1763524ae6b1541
Reviewed-on: https://dart-review.googlesource.com/16180
Reviewed-by: William Hesse <whesse@google.com>
2017-10-25 07:14:52 +00:00
Morten Krogh-Jespersen a95fef2a21 Remove dependendy on archive in gardening tools.
Bug:
Change-Id: I259f9446242c425dae62ecb23cdaa669e13f49a4
Reviewed-on: https://dart-review.googlesource.com/16160
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-10-25 07:14:23 +00:00
Roland McGrath 014a34e64f [infra] Use new GN template to assemble Fuchsia test image
Generate a manifest of just Dart's files, no longer rolling in the
main Fuchsia manifest.  Use Fuchsia's new bootdata() template to
generate a BOOTFS image of just the Dart test files.  A new Fuchsia
GN build argument will control rolling this into the final image.

IN-70

Change-Id: Idd2db5aab483f49d6f6f3e4065798ded130d606a
Reviewed-on: https://dart-review.googlesource.com/15987
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2017-10-24 15:27:58 +00:00
Morten Krogh-Jespersen ccd835ddb1 Wrapper around status files and expectations.
Bug:
Change-Id: I5cb9efcc915d4106f35516702109d35d4c12e604
Reviewed-on: https://dart-review.googlesource.com/13744
Reviewed-by: William Hesse <whesse@google.com>
2017-10-24 07:42:42 +00:00
Alexander Aprelev b6d7ad59dc Include dart:diagnostic_server into flutter patched sdk.
Bug: https://github.com/dart-lang/sdk/issues/31145
Change-Id: Id9cd5e484d108f62d1008cd07dc3d4e0eb05d598
Reviewed-on: https://dart-review.googlesource.com/15920
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2017-10-23 21:29:09 +00:00
Bob Nystrom 746336ba10 Improve test output:
- Clean up browser test failure output. Instead of barfing a giant blob
  of JSON, show just the runtime error and its stack trace. In verbose
  and on the buildbots, it still shows all the events, but even there
  they are formatted nicely.

- Don't redundantly show the failure summary when most of the output is
  already failure text.

- Color the failure summary end message.

Change-Id: I49724b204be55a297fc5e723b80b32e0e00748f0
Reviewed-on: https://dart-review.googlesource.com/15767
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-10-23 19:03:48 +00:00
Alexander Markov 34df7f3599 Wire up strong-aot implementation option
This CL adds handling of previously introduced 'strong-aot'
implementation (target-specific) option into VM target.

After this change, it will be possible to enable strong-mode
whole-program optimizations in Flutter (in addition to standalone VM).

Issue: https://github.com/dart-lang/sdk/issues/30480
Change-Id: I054b75ce4ba1b9bcf150e0b7f25fa7ca1bdd187e
Reviewed-on: https://dart-review.googlesource.com/15644
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2017-10-23 16:57:17 +00:00
William Hesse 64c150ab1a Revert "Capture stack traces in asynchronous browser test failures."
This reverts commit ca987d5c01.
This commit was slowing down Safari by a significant factor, causing
timeouts.

Bug:
Change-Id: Iddb3bf4f86664fa823cae5b08f24b3e240b4c67d
Reviewed-on: https://dart-review.googlesource.com/15881
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2017-10-23 08:32:13 +00:00
Sigmund Cherem 171d7965d7 Pass through the --strong flag to the vm runtime configuration
R=rnystrom@google.com,whesse@google.com

Change-Id: I83a827b2d681152cc80e8f0d76445e38e954bfc1
Reviewed-on: https://dart-review.googlesource.com/15820
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-10-21 01:12:28 +00:00
P.Y. Laligand 68a4c5783d Update the location of the Flutter project.
Change-Id: I7aa9448de2e7b58a95f3e87871a11286e7b364bb
Bug:
Reviewed-on: https://dart-review.googlesource.com/15768
Reviewed-by: Zach Anderson <zra@google.com>
2017-10-20 22:57:10 +00:00
Brian Goldman 5f0b431011 Change Fuchsia root now that Dart is one level deeper in the Fuchsia tree
Change-Id: I8c5e91910fd34f52a0abb491e18301fb60f3948b
Bug:
Reviewed-on: https://dart-review.googlesource.com/15650
Reviewed-by: Zach Anderson <zra@google.com>
2017-10-20 19:28:22 +00:00
Bob Nystrom 9c0a6fd27c Add rudimentary support for dartdevk to test.dart.
It's added as a new compiler, so pass "-c dartdevk" to use it.

It doesn't support any test packages yet, so tests that, say, import
package expect won't compile. I'll work on that next, but it will
require adding some stuff to the build scripts to build .dill files for
those packages.

This does get test.dart invoking the compiler, running the resulting
test, and correctly reporting the result:

- A test that doesn't throw an exception and stays within the bounds of
  what is currently implemented in dartdevk passes.

- A test that compiles correctly but fails at runtime fails with a
  RuntimeError.

- A test that contains a compile error fails with a non-zero exit code
  and is reported as a CompileTimeError.

Change-Id: Icacbf1ff54dfe7aa4d245382d3b0aeb375cf105b
Reviewed-on: https://dart-review.googlesource.com/15420
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2017-10-20 16:00:28 +00:00
Morten Krogh-Jespersen b4e1f28e43 Add extra flags to output.
Bug:
Change-Id: I2f947b0ca91c0791fd85ea8e0e8cb8e27b2ee305
Reviewed-on: https://dart-review.googlesource.com/15520
Reviewed-by: William Hesse <whesse@google.com>
2017-10-20 13:34:01 +00:00
Morten Krogh-Jespersen b679bf0818 Tool for finding duplicate entries for tests in status files.
Bug:
Change-Id: Ia1c1110b7b5f71465763bd3042ae459008293971
Reviewed-on: https://dart-review.googlesource.com/13745
Reviewed-by: William Hesse <whesse@google.com>
2017-10-20 11:44:09 +00:00
Bob Nystrom c341575a53 Colorize section headers and slightly clean up test output.
Of course, if you're not using the color formatter, it stays uncolored.
But this gets rid of some unnecessary empty lines and section headers
that have no content.

Change-Id: I5b83345c583b79468af84f4e67a12ee757a3105f
Reviewed-on: https://dart-review.googlesource.com/14720
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2017-10-19 21:45:57 +00:00
Bob Nystrom ca987d5c01 Capture stack traces in asynchronous browser test failures.
This works for both dart2js and DDC.

Change-Id: Ic27a99c3691ee06259597b227239b974a60b2484
Reviewed-on: https://dart-review.googlesource.com/15320
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2017-10-19 21:10:57 +00:00
Alexander Aprelev b573b1bbd5 Fix location where we look for flutter relative to dart.
This is follow-up to https://github.com/flutter/engine/pull/4245.

Bug:
Change-Id: I31c16574dabb84d3f70014c11033e4045410caf1
Reviewed-on: https://dart-review.googlesource.com/15220
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2017-10-19 19:19:07 +00:00
Bob Nystrom ba2e4aff24 Some minor clean-up in test.dart.
- Fix fuzzy arrow errors.
- Default the Dart repo URI so it doesn't always need to be explicitly
  set.
- Run dartfmt on everything.
- Move some members out of the garbage bin "TestUtils" class:
  - Move the stuff around the Dart repo directory to a new Repository
    class.
  - Move absolute() into Path where it belongs.
  - Move workingDirectory in Path since it is a Path.
  - Delete the random number stuff since it was apparently unused.

Change-Id: I3dab3a4f1713b7a749e64b6776149d05a0ce1b69
Reviewed-on: https://dart-review.googlesource.com/14502
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-10-19 19:05:58 +00:00