Commit Graph

29 Commits

Author SHA1 Message Date
kustermann@google.com 62c83a4443 Moved the testing scripts to the new import/library/part syntax
Review URL: https://codereview.chromium.org//11575028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16163 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 14:19:01 +00:00
ajohnsen@google.com ab69873a42 Make RegExp constructor non-const.
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.

BUG=

Review URL: https://codereview.chromium.org//11369210

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com ec9fee9858 "Reverting 14829-14832"
BUG=

Review URL: https://codereview.chromium.org//11312203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com 8dc3edd7ce Make RegExp's constructor non-const.
BUG=

Review URL: https://codereview.chromium.org//11410033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
ager@google.com 7f04c40b2d Land update to tools directory with new binaries.
BUG=

Review URL: https://codereview.chromium.org//11343008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14176 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 09:21:14 +00:00
whesse@google.com 2722230b81 Fix dart/tools directory to remove @'raw string' and foo.dynamic.
BUG=

Review URL: https://codereview.chromium.org//10908239

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12698 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 12:53:08 +00:00
ahe@google.com 753f0563e4 Tool for identifying stale co19 status lines.
Review URL: https://chromiumcodereview.appspot.com//10918095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11922 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 07:41:49 +00:00
ricow@google.com 942e3cf4c1 Add a support for a slow marker in status files.
The reasoning for this is that we want to have a sufficiently low
timeout to catch performance regressions, but still want to maintain
the support for having a few tests that takes a longer time to
complete.

This cl adds 2 slow functions, I will add more if any additional tests timeout on the buildbot.
Review URL: https://chromiumcodereview.appspot.com//10854156

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10714 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 11:55:44 +00:00
mattsh@google.com d8af601ce4 removed unused 'prefix' line from status files
Review URL: https://chromiumcodereview.appspot.com//9621003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5101 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 16:10:57 +00:00
ager@google.com 242bba108b Reapply dart:io API changes.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9568004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4790 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 10:07:35 +00:00
ager@google.com fd31551ca4 Revert "Rename blahHandler to onBlah throughout dart:io."
D'oh! I need to update the test binaries as well. Reverting, building
and putting back in again.

R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9570004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4785 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 09:43:15 +00:00
ager@google.com 40e0bceab5 Rename blahHandler to onBlah throughout dart:io.
Additionally, change all single-shot methods to take their callback as an argument instead of registering it on the object.

I have attempted to find all uses in the repo but there might
be some firefighting to do when this lands.

R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9500002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4784 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 09:36:04 +00:00
ager@google.com 4d94b5c4d9 Move back to having File.open{Input,Output}Stream return the stream directly.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9487005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4677 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 12:28:42 +00:00
sgjesse@google.com 46e44ecba1 Add both sync and async methods for getting streams for a File
The File class used to have two synchronous methods
openInputStream and openOutputStream for getting streams for a
file. These have now been changed to work asynchronously by the
associated callback inputStreamHandler or outputStreamHandler
when the stream is opened and available.

To support the synchronous API two new methods
openInputStreamSync and openOutputStreamSync which returns the
stream directly as before have been added.

The actual implemnetation of the file streams still uses the
synchronous file API internally. However this change
adds "simulated" handling of noPendingWriteHandler and
closeHandler for file output stream.

R=ager@google.com

BUG=dart:1784

TEST=

Review URL: https://chromiumcodereview.appspot.com//9432023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4452 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:11:04 +00:00
ahe@google.com da2bec0dfc Remove "complex matching" from co19.
Review URL: https://chromiumcodereview.appspot.com//9325024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3896 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-03 13:27:21 +00:00
whesse@google.com 8cf7a30c9e Move test.dart's check for missing test directories from co19 to general framework.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9320038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3886 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-03 09:47:00 +00:00
whesse@google.com 03700e60e5 Make test.dart use the path of the running script to find the Dart checkout.
This could be tools/test.dart, tools/test-runtime.dart, or tools/test-compiler.dart.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9302034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3782 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-01 12:10:24 +00:00
ager@google.com 4efd1f98fa Split dart:builtin into dart:builtin and dart:io.
- dart:builtin is implicitly imported.
- dart:io has to be explicitly imported.

I will update the macos and windows stable test binaries when we
are happy with the solution.

R=iposva@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9254026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3537 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 07:36:59 +00:00
ager@google.com fce78ae7cb Allow runtime tests to run on Windows.
R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//9112007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2996 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 14:03:59 +00:00
sgjesse@google.com 8055ffeb77 Add close to input stream and cleanup socket and streams
* All input streams now have a close method for just cutting
  the stream
* Removed interfaces FileInputStream and FileOutputStream
* Added exceptions to socket to avoid mixing stream and non-stream
  use of the same socket
* Added special handling of the socket connect handler callback

R=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//9029001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2893 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 13:00:59 +00:00
sgjesse@google.com 8f1b82458f Improve the event handling for string input stream
1. The string input stream now calls the data or line handler if there
   is still data available after returning from the data or line
   handler. These callbacks are scheduled on the event loop.

2. The reading of data is now throtteld so that calls to read or
   readLine will not eagerly try to read from the wrapped input
   stream. After each call to read the data handler is installed if
   no more buffered data is available. Also when the data handler
   is called the data handler on the wrapped input stream is
   un-installed if no more data is required for the current data or
   line handler.

One side effect of this change is that just reading from an input
stream obtained from a file is no longer possible. One will have to
set up a data handler callback of some kind before any calls to read
will return data. We can of cause change this to allow synchronous
usage of an input stream obtained from a file (maybe with an optional
argument to openInputStream).

Fixed a related throtteling issue with the chunked input stream.

R=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8885032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2310 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 14:08:47 +00:00
whesse@google.com 71e98e9d4a tools/test.dart: Add summary report of the number of tests with each expectation.
BUG=
TEST=tools/test.dart --report

Review URL: http://codereview.chromium.org//8771007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2017 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 13:29:26 +00:00
sgjesse@google.com 775438288d Add line handler to string stream
This adds the line handler to the string stream to provide callbacks
when a line is known to be available.

This change also refactors parts of the string stream to avoid
converting decoded char codes to a string before checking for line
break sequences. With this change the string decoder tracks all line
breaks.

There is still room for improvement as e.g. the coping of the list of
char codes when reading lines can be avoided by using anoher offset.

R=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//8772008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2016 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 11:59:02 +00:00
ager@google.com 2995930544 Allow varying case in the expected outcome (Pass, PASS).
R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8775007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1981 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:18:30 +00:00
ager@google.com 2b62a139f2 Enable co19 test suite on dart test scripts.
Updated the TestExpectations class to be able to deal with the
odd matching rules that are used for co19.

Currently we are using a lot of memory when running all of these
tests. I have optimized the test expectation part quite a bit.
The thing that seems bad now if the processing of all the lines
of every simple test to find DartOptions. We need to work on that.

R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8539044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1563 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 12:27:06 +00:00
whesse@google.com 02b001fbaf tools/test.dart: Read test expectations from the status file, and pass them to the test runner.
BUG=
TEST=tools/test.dart

Review URL: http://codereview.chromium.org//8514003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1407 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 17:13:45 +00:00
whesse@google.com 55ad9b0e7b Make tools/test.dart read standalone.status status file when running tests.
BUG=
TEST=tools/test.dart

Review URL: http://codereview.chromium.org//8507010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1358 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-09 15:50:39 +00:00
whesse@google.com ddf5026893 Dart rewrite of test scripts: do not fail test on missing status file.
BUG=
TEST=standalone/StatusFileParserTest

Review URL: http://codereview.chromium.org//8437048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1077 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-02 10:35:02 +00:00
whesse@google.com f9a5add2da Add status_file_parser.dart library, and tests for it, to the Dart rewrite of the test suite runner.
BUG=
TEST=standalone/StatusFileParserTest

Review URL: http://codereview.chromium.org//8335008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1076 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-02 10:17:35 +00:00