Commit Graph

6631 Commits

Author SHA1 Message Date
ager@google.com dde03ed8ad Fix build: use strings for booleans in status expression evaluation.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1454 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:57:39 +00:00
ager@google.com 10092daafd Parse command-line options into a list of test configurations.
This allows to run multiple variants at once:

./tools/test.dart --mode=debug,release --component=most

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1453 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:53:18 +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 5d40fb2a9f Fix type mismatch errors. Environments do not only contain strings.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1451 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 09:37:08 +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
antonm@google.com f8eb259b8d Defer further starting timeout watch dog.
Recent changed made DOMContentLoaded event to fire before than
Dart application is ready to run.  Therefore the safest bet
timeout watchdog is to wait until the document is fully loaded.

This reverts commit 162f93c5b4def3f2cac2aa1b00fa1d510d1e9940.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1447 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:23:05 +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
efortuna@google.com 87b9e83041 Adding in-browser correctness testing via selenium.
Do not, I repeat, DO NOT enable these to run by default on the buildbot yet
(Currently they do not run by default). I am checking this in in its raw state
so that my fellow frog developers can start making fixes to frog for running in
other browsers. You can run these test by running: 

Install WebDriver stuff by following these instructions:
http://code.google.com/p/selenium/wiki/PythonBindings

Then start the server:
java -jar selenium-server-standalone-2.11.0.jar -browserSessionReuse

../tools/test.py --component=webdriver --report --timeout=10 --progress=color
--mode=release language

Frog generates code that fails in Firefox, but passes in Chrome (for example). We
need to fix this eventually, but it shouldn't cause our entire tree to turn red.
Note also that to run selenium, you will need to install the selenium python
library, and ChromeDriver.
Review URL: http://codereview.chromium.org//8469016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1436 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 01:24:50 +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
ahe@google.com 40608f24e7 Create class AST nodes.
Review URL: http://codereview.chromium.org//8508016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1399 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 14:43:28 +00:00
floitsch@google.com d0dedfdffc Throw and a small fix to If.
If fix is slightly hacky, but should go away with our refactoring.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1398 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 14:07:06 +00:00
ahe@google.com 1b4e839fec Handle co19 @dynamic-type-error better.
Review URL: http://codereview.chromium.org//8518002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1392 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 12:12:19 +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
ager@google.com f789c40d85 Correct the sign of exit codes for the process library.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1356 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-09 15:37:40 +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
ngeoffray@google.com d92b93178d Fix unbound variable error in python code. This fixes the browser tests breakage.
Review URL: http://codereview.chromium.org//8502015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1304 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 12:39:54 +00:00
ngeoffray@google.com 8c9a64166f Add a leg_only test suite, and make sure to run it in our presubmit script.
Review URL: http://codereview.chromium.org//8496009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1303 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 12:34:10 +00:00
alexeif@google.com 7fd3f3d2f6 Tweaks to string escapes. Added raw string literals.
Review URL: http://codereview.chromium.org//8437100

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1248 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 13:03:16 +00:00
whesse@google.com a417e377dc Add test_runner.dart to Dart version of test scripts. Include TestRunnerTest unit test.
BUG=
TEST=standalone/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1245 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 12:11:07 +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
ngeoffray@google.com 3dedc560f5 - Update tests to make sure they recerefence invalid code.
- Improve multi test case configuration by adding a 'continued' tag.
Review URL: http://codereview.chromium.org//8437091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1153 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 16:58:54 +00:00
zundel@google.com 2e6e49f78a Integrate frog tests into presubmit.sh
Review URL: http://codereview.chromium.org//8437064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1145 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 13:20:21 +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
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
codefu@google.com 74866724b7 Tweaks to get presubmit working
R=zundel
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1035 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 18:23:21 +00:00
ahe@google.com a7ebe7f317 Fix broken test.py expression.
Review URL: http://codereview.chromium.org//8386003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1024 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 16:10:32 +00:00
ahe@google.com 8846883321 Update to co19 revision 15.
Review URL: http://codereview.chromium.org//8430028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1004 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 13:29:33 +00:00
alexeif@google.com c673b4a335 Fix hilighting of string interpolation and several operators.
Review URL: http://codereview.chromium.org//8432002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1003 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 12:02:44 +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
floitsch@google.com 92e7c3981f Increase timeout. Hopefully this reduces the flakiness on the build-server.
Start timeout only when document is loaded.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@964 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:50:08 +00:00
floitsch@google.com 61b7e92560 Tell the testing-framework that we started the tests.
Review URL: http://codereview.chromium.org//8430005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@956 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 17:00:10 +00:00
ngeoffray@google.com e0d529befb Remove 'dartc' as an arch for build.py.
Review URL: http://codereview.chromium.org//8417030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@895 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 16:21:46 +00:00
zundel@google.com a0af740e5b dartc is no longer a valid build architecture, use ia32 instead.
Also changed to build from top level instead of subdirectories.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@894 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 15:42:44 +00:00
whesse@google.com 41b8b4a875 Fix type error in tools/testing/dart/status_expression.dart.
BUG=
TEST=standalone/StatusExpressionTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@887 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 11:47:36 +00:00
whesse@google.com 205ddb3ad1 Start adding files for Dart version of test script test.py.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@885 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 11:09:48 +00:00
ngeoffray@google.com 9acb7d6610 build.py will not accept --arch=dartc soon, so removing references and uses of --arch=dartc in the repo.
Review URL: http://codereview.chromium.org//8341103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@882 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 10:39:30 +00:00
zundel@google.com dc5bf070e1 Fixes problem with running test.py --arch dartc --mode release,debug
The --optimize flag was set for all tests at the top level if
release mode was specified.  I pushed this logic down into the
be a part of generating run command for each individual test case.

BUG=5408215

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@768 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 18:12:08 +00:00
ager@google.com 9265136864 Add support for test expectations based on the --checked flag.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@751 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 14:24:38 +00:00
alexeif@google.com 029f5029e9 Add abstract keyword.
Review URL: http://codereview.chromium.org//8359003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@687 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:48:48 +00:00
ahe@google.com 80e2bb4bd2 Filter-out dart:... sources
Review URL: http://codereview.chromium.org//8329026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@548 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 10:05:03 +00:00
nweiz@google.com 9e293343cc Another fix to the web-test pattern.
Review URL: http://codereview.chromium.org//8297007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@501 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:59:01 +00:00
dcarlson@google.com 0266184ec1 Create minimal TextMate mode for Dart.
R=knorton@google.com,rnystrom@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@484 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 20:19:51 +00:00
kasperl@google.com 7c038b73a6 Landing http://codereview.chromium.org/8258017/ on behalf of
Ola Martin Bini. Changed reviewed by vsm@google.com.
Review URL: http://codereview.chromium.org//8306026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@467 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 13:52:54 +00:00
rnystrom@google.com c28999e0fa Fix pattern used to tell which tests are web tests.
Review URL: http://codereview.chromium.org//8295012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@453 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 21:09:06 +00:00
ngeoffray@google.com fee0ef8fb5 Make sure we cleanup what was generated by the architecture.
Review URL: http://codereview.chromium.org//8283033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@440 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:25:18 +00:00
ager@google.com 4bf840639c Fix windows build.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@437 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:19:20 +00:00
ngeoffray@google.com fd40730343 Fix testing and buildbot.
Review URL: http://codereview.chromium.org//8283031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@431 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 12:36:16 +00:00
sgjesse@google.com d2ace1a9da Add back VM_OPTIONS_PATTERN.
TBR=ngeoffray@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@430 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:54:50 +00:00