Commit Graph

1365 Commits

Author SHA1 Message Date
vsm@google.com 9c799be622 Build fix: failing tests now passing
TBR=sigmund

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2279 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 20:42:45 +00:00
sigmund@google.com d7c3287fdd fix set index bug in frog.
BUG= http://code.google.com/p/dart/issues/detail?id=541

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2108 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 01:23:05 +00:00
jmesserly@google.com 60d7ab1f64 Fixed lambdas that have the same name as one of their parameters/locals
It even fixed a corelib test :)
http://code.google.com/p/dart/issues/detail?id=388

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2100 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 23:06:27 +00:00
ager@google.com 3bf558018e Allow single-dash options to be specified without a space before value.
./tools/test.dart -mdebug,release

Make the patterns given to the test script more restrictive. A pattern
has to specify the test suite as the first component. The rest is used
as a pattern on all tests within that suite:

./tools/test.dart -mrelease leg co19/leg

will run the leg tests and the co19 tests that contains the substring
'leg' somewhere in the full path name of the test.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2014 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 11:50:05 +00:00
regis@google.com 9f230a34c6 Implement type checking of list literals (issue 220).
Remove expose_core_impl flag.
Add tests.
Fix tests.
Cleanup type checking of map literals.
Review URL: http://codereview.chromium.org//8676001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1809 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 19:34:23 +00:00
ager@google.com 0bbe9566c6 Enable language and isolate tests using the dart test runner.
Refactor the test_config.dart files. Have a standard implementation
of a test suite that can be easily customized to cover all the
current suites.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1611 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 12:25:01 +00:00
ager@google.com 0b8097c578 Start extracting common test_config.dart functionality into a utility library.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1607 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 09:39:13 +00:00
ager@google.com 17c3c9b8c2 Optimize the processing of test options.
Read the entire file in one go and find all matches of the regexps.
This reads the file with the assumption that one byte is a char.
For the things we are looking for that will be ok.

No need to pass special options to get a larger new space. We
run corelib, standalone and co19 in roughly 10sec on my machine.
With the python version we are at 6sec.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1569 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 14:48:44 +00:00
floitsch@google.com b34a3599a7 Use Expect.listEquals instead of own version.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1565 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 13:13:54 +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
floitsch@google.com 1bf944156e Fix dual-pivot sort.
BUG=dart:432
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1506 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:57:59 +00:00
floitsch@google.com e24dec2169 Rename StopWatch to Stopwatch. Add new Stopwatch.start() and Stopwatch.reset().
BUG=dart:418
TEST=
Review URL: http://codereview.chromium.org//8537011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1505 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:56:18 +00:00
whesse@google.com 9873986daf tools/test.dart: Enable // DartOptions= lines in Dart test runner.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1503 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 12:28:54 +00:00
ager@google.com 211968eb7a Implement test selection.
Make it very simple and flexible. I don't think we need to make
it more restrictive than this.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1502 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 11:28:54 +00:00
whesse@google.com 29294f393b tools/test.dart: Handle VMOptions lines in test files.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1461 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 14:44:41 +00:00
ager@google.com 1191c37e56 Enable frog testing components.
Respect timeout command-line option.

Use option names with underscores understood by all components.

Improve compact progress report using stdout access.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1460 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 14:08:07 +00:00
whesse@google.com 636a5d6df7 tools/test.dart: Implement --checked option.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1455 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 11:44:06 +00:00
ager@google.com 6b73da258c Implement 'compact' progress indicator.
At this point it is not that compact because print always prints
a newline and therefore we cannot reuse the same line in the output.
I will update that when we have access to stdout stream.

Removed asserts that fail when test script is run from runtime
directory.

Removed debugging output from status file parsing.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1452 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:24:02 +00:00
ager@google.com 187e1cd2ab Use the configuration for determining the binary to use for testing.
So far supporting components vm and dartc.

Also, use the actual configuration for status file parsing.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1450 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 09:27:51 +00:00
jmesserly@google.com 488fa4dd32 Adds typechecking of return values
Also fixes places in frog where we were returning things from "void" methods.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1443 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:36:15 +00:00
sigmund@google.com e024570e01 Adding frogium: a frog-chromium architecture that runs tests in chromium that
were compiled with frog.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1440 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:07:02 +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
ager@google.com a427f80ccc Getting started on options parsing.
Support the most common options. So far only the --tasks/-j option
is actually used.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1405 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 16:14:06 +00:00
whesse@google.com 70da4ae316 Add asynchronous test suite runner to Dart rewrite of test scripts.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1316 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 15:21:47 +00:00
sigmund@google.com 28d55d0340 Isolates in frog - tweaks in existing js code to make it run. I plan to do an
actual cleanup on a second CL.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1279 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 01:27:19 +00:00
jimhug@google.com e6f1d5c142 All skipped tests should now be "correctly skipped" which means they should not count towards the total tests when computing percentages.
Fixed bugs in validating libraries and in static checking for named parameters as the easiest way to clean up the status of these tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1233 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-05 16:04:19 +00:00
ngeoffray@google.com c93b5a40ea Integrate leg as a component in test.py. Also update presubmit script to run tests with leg.
Review URL: http://codereview.chromium.org//8462004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1187 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 10:29:48 +00:00
srdjan@google.com 49caedb014 Fix issue: 5427703 (compareTo), fix parsing of -0.0.
Review URL: http://codereview.chromium.org//8430037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1156 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 18:03:39 +00:00
ngeoffray@google.com 5d6af6602a Bleeding edge change to get frog integrated into the testing infrastructure.
Review URL: http://codereview.chromium.org//8372095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1140 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 12:15:55 +00:00
ager@google.com 5b5c36e253 Implement async file API on top of isolates.
This is not going to be efficient but will give us the right
semantics of the operations. We should be using native async
operations for this.

Fixed a bug in VM implementation of List.setRange.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1012 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 14:07:30 +00:00
ngeoffray@google.com 33ec29bf11 Add a new variable environment for testing, to replace the misusage of 'arch'.
Review URL: http://codereview.chromium.org//8408002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@993 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 09:12:55 +00:00
srdjan@google.com f5713b39eb Fix buildbot breakage for checked mode (allow TypeError as well).
Review URL: http://codereview.chromium.org//8430012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@965 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 19:01:48 +00:00
srdjan@google.com 6d8d978d5a FIx issue 261: throw exception if index if idnexed oeprators if lists Array and GrowableArray is not int.
Review URL: http://codereview.chromium.org//8387035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@962 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:40:32 +00:00
ngeoffray@google.com 210fd33d0a Remove List.fromList constructor, and List.copyFrom. They are duplicates of the new range methods.
Review URL: http://codereview.chromium.org//8422005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@941 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 09:49:15 +00:00
asiva@google.com 477128d98b Update dartc test status.
TBR=zundel
Review URL: http://codereview.chromium.org//8400066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@907 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 18:09:45 +00:00
asiva@google.com 69a41e4c4c - Add new test for regex
- Update test status
Review URL: http://codereview.chromium.org//8399016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@902 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 17:32:29 +00:00
iposva@google.com cf982eb4c5 - Remove remaining Array interface.
Review URL: http://codereview.chromium.org//8346022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@544 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 00:50:39 +00:00
johnlenz@google.com 0880d2fec3 Fix build now that the test passes.
Review URL: http://codereview.chromium.org//8347001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@512 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 17:13:07 +00:00
ngeoffray@google.com c0665b7f29 Remove print from MathVMTest and update status file to refer to dom 'print' bug.
Review URL: http://codereview.chromium.org//8339018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@509 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 15:10:03 +00:00
ngeoffray@google.com 70c01beb9b Clean up (most) uses of Array. Still more to come in the VM corelib code base.
Review URL: http://codereview.chromium.org//8321024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@507 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 10:02:59 +00:00
floitsch@google.com 9ea0d01b92 Fix fix.
TBR=ngeoffray

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@473 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 17:09:22 +00:00
floitsch@google.com a1d6af4e16 Disable DoubleCompareTest in release mode.
TBR=ngeoffray

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@472 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 16:42:20 +00:00
floitsch@google.com 0a226d3b67 Implement compareTo on DartC.
BUG=5427706

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@470 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 16:07:17 +00:00
ngeoffray@google.com 52aa068f73 Implement List.insertRange.
Review URL: http://codereview.chromium.org//8271029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@439 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:44:18 +00:00
ngeoffray@google.com 85804080f3 Implement List.getRange.
Review URL: http://codereview.chromium.org//8276005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@403 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 16:24:09 +00:00
ngeoffray@google.com b69b4200c8 Implement removeRange, and update some documentation on the list interface.
Review URL: http://codereview.chromium.org//8273004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@400 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 15:54:48 +00:00
ngeoffray@google.com edcae54a2c Implement setRange on DartC and the VM.
Review URL: https://chromereviews.googleplex.com/3574018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@394 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:58:49 +00:00
ngeoffray@google.com 76ef8258a4 Create a standalone test directory and move tests in runtime/tests/dart (mostly) to that directory.
Review URL: http://codereview.chromium.org//8261009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@393 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:44:29 +00:00
ngeoffray@google.com d9f0ae9d05 Update status file.
Review URL: https://chromereviews.googleplex.com/3577017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@231 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 16:01:19 +00:00
ngeoffray@google.com 96303f1dab Use import directives instead of --expose_core_impl.
Review URL: https://chromereviews.googleplex.com/3561018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@227 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:56:12 +00:00