Commit Graph

832 Commits

Author SHA1 Message Date
johnniwinther@google.com dbac078af5 Fix d8 path for Windows.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22361 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 11:13:08 +00:00
kustermann@google.com 9c08adf54b Print the number of failed tests
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22323 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 15:17:28 +00:00
kustermann@google.com 15414016c2 Switch to checked-in binary of d8
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22242 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 12:26:21 +00:00
ricow@google.com e7f790dba5 Fix csp flags send to browsers.
We can't send the webkit flag to chrome, it will throw an error.

R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22178 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 12:02:49 +00:00
sgjesse@google.com 921653a087 Add a new test suite 'analyze_tests'
The new test suite 'analyze_tests' will run the analyzer on the
selected tests, and fail if there are static type errors. Currently
only the tests in tests/standalone are included, but that can easily
be expanded.

The reason for starting this was that for M4 we where missing two
'part' files in io.dart (for the HttpBody utility class). This caused
the use of HttpBody in the editor to be complicated. With static type
checking on the tests which tested HttpBody this mistake would have
been caught.

R=ager@google.com, ricow@google.com, kustermann@google.com, ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21944 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:47:13 +00:00
ricow@google.com c59a8b5b83 Remove special casing for browser timeout
Review URL: https://codereview.chromium.org//13880030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21878 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 12:52:32 +00:00
efortuna@google.com 419c6548fd Fix for Anton.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21584 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 22:17:38 +00:00
floitsch@google.com d8930c4ae6 Revert changes in tools/testing while the Dart executable can't handle it.
Review URL: https://codereview.chromium.org//14113018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21511 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 20:26:36 +00:00
floitsch@google.com 5431a5af54 Remove AsyncError with Expando.
Review URL: https://codereview.chromium.org//14251006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
floitsch@google.com 759a366cea Remove insertRange.
Review URL: https://codereview.chromium.org//13956006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21464 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:20:16 +00:00
kustermann@google.com c1df0a5418 Only print the failure summary header if there were failures
Review URL: https://codereview.chromium.org//14251009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21453 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:57:31 +00:00
kustermann@google.com 19c3cc02f1 Remove proxy-related environment variables when running standalone tests
Review URL: https://codereview.chromium.org//13985009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21360 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 14:45:17 +00:00
whesse@google.com 24c4348196 Fix more type errors in test scripts.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21298 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 17:18:44 +00:00
whesse@google.com d47b6701ea Fix type error in test scripts
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21292 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 16:31:02 +00:00
whesse@google.com 266bada744 Remove use of Expect from test scripts and idlparser_test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21287 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 15:53:44 +00:00
floitsch@google.com aecbeabcac Implement getRange (returning an Iterable).
Review URL: https://codereview.chromium.org//14065011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21281 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 14:14:29 +00:00
ajohnsen@google.com 974a300cad Remove deprecated <, <=, >, and >= of DateTime.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21260 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 09:27:54 +00:00
ricow@google.com 00da866b33 Move the dart2js snapshot into bin directory of sdk root.
This is the first step in eliminating lib/_internal.
Review URL: https://codereview.chromium.org//13945008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21247 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 05:47:24 +00:00
devoncarew@google.com d7b8047611 Rename the sdk/bin/dartanalyzer* scripts to dartanalyzer_developer*, and update
the test framework to call the new scripts. This rename will allow us to add
two new scripts to this directory, dartanalyzer and dartanalyzer.bat. These scripts
will be the ones we include in the sdk.
Review URL: https://codereview.chromium.org//13760010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21213 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:01:21 +00:00
floitsch@google.com 343fa26d65 Remove deprecated Expect from the libraries.
Review URL: https://codereview.chromium.org//13724021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21079 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 16:07:34 +00:00
floitsch@google.com 8fd6d0aafd Remove Expect from core library.
Committed: https://code.google.com/p/dart/source/detail?r=19755
Reverted: http://code.google.com/p/dart/source/detail?r=19756

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20996 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:43:16 +00:00
devoncarew@google.com c5c15b0881 Rename the name of the new analyzer jar file from new_analyzer.jar to
dartanalyzer.jar (which I think will be the preferred name for it in
the SDK).

Update the test framework for these renames.
Review URL: https://codereview.chromium.org//12618010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20994 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:33:23 +00:00
ahe@google.com 7ccd8ad5ef Wrapping files without library tags is neither necessary nor correct anymore.
Review URL: https://codereview.chromium.org//13674004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20971 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 15:11:40 +00:00
kustermann@google.com 1c1590da22 Remove \r in command stdout/stderr when building failure a failure output.
BUG=http://dartbug.com/8704

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20860 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 13:20:51 +00:00
kustermann@google.com 78ac77e8c9 Fixed test_progress to print the failure summary even if no stepname was given
Review URL: https://codereview.chromium.org//13432003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20846 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 11:32:44 +00:00
ahe@google.com 01fc0fc9d1 Update to co19 r515.
Review URL: https://codereview.chromium.org//13464007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20841 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 07:22:37 +00:00
blois@google.com 6fad216eb7 Expanding WebSocket test
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20797 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 16:45:09 +00:00
ahe@google.com e86ae89c64 Revert "Workaround issue 8080:"
This reverts r20486.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20778 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 14:10:01 +00:00
efortuna@google.com 1f47bfa1bb Fixed regexp in test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20644 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 21:06:44 +00:00
efortuna@google.com fac7fba1da Re-enable throwing if we try to set the unit test configuration twice.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20624 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 17:49:04 +00:00
kevmoo@j832.com 06befdfeb5 better warning in tools/testing/dart/test_options
Less helpful: Warning: combination of none and firefox is invalid.
More helpful: Warning: combination of compiler 'none' and runtime 'firefox' is invalid.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20512 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-26 13:20:41 +00:00
kustermann@google.com ca08052687 Do not close stdout/stderr in CompactProgressIndicator
BUG=http://dartbug.com/9419

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20497 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 22:29:25 +00:00
iposva@google.com 390a180a17 Workaround issue 8080:
- Remove the obsolete print of warnings when running tests.
Review URL: https://codereview.chromium.org//12940007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20486 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-25 21:06:16 +00:00
zra@google.com e1562155b1 Closes stdin after starting a new process for a test.
It is a mistake if a test tries to block to wait for
input on stdin. If we close stdin in the test script
after the test process starts, reading from stdin
will indicate that a test can fail immediately
rather than timing out.
Review URL: https://codereview.chromium.org//12521020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20386 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 16:45:46 +00:00
kustermann@google.com 4c45723e98 Added --failure-summary option to test.dart
Review URL: https://codereview.chromium.org//12902035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20379 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 13:31:06 +00:00
kustermann@google.com c39e900179 Update of co19_test.dart to reflect new API
Review URL: https://codereview.chromium.org//12517015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20149 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 10:26:22 +00:00
blois@google.com e52412a9fd Fixing IE10 CORS test.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20126 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:35:16 +00:00
sgjesse@google.com b19bfba0b5 Fix manual starting of test runner HTTP servers
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20077 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 13:21:38 +00:00
sgjesse@google.com d6955d176c Reapply "Update the test runner to use the new dart:io API"
This reverts r20031.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20070 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 11:13:39 +00:00
lrn@google.com 844cd39fad Change getRange to sublist. Make getRange deprecated.
This changes the exception behavior of getRange. It used to accept
a length of zero, no matter what start value. Now the start value
must be a valid list index.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20064 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 09:15:39 +00:00
devoncarew@google.com 0cc0f798ce Tweaks to the new_analyzer test suite to not run the dartc unit tests.
Review URL: https://codereview.chromium.org//12833007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20044 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 19:53:49 +00:00
sgjesse@google.com f5270bf202 Revert "Update the test runner to use the new dart:io API" again
This reverts r20027 and r20029

TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20031 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 15:38:18 +00:00
sgjesse@google.com fdaca2fe83 Revert "Update the test runner to use the new dart:io API" again
This reapplies r20004 and r20008 and fixes a HTTP server issue.

TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20027 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 15:24:36 +00:00
sgjesse@google.com 3e2ffb4394 Revert "Update the test runner to use the new dart:io API" again
This reverts r20004 and r20008.

TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20009 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 12:13:37 +00:00
sgjesse@google.com db7821cdf3 Reapply "Update the test runner to use the new dart:io API"
The Linux binary will work on the bots. Fixed a number of issues.

The new binaries are from r19850.

R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20004 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 11:39:20 +00:00
sgjesse@google.com 78403ce605 Revert "Update the test runner to use the new dart:io API"
This reverts commit r19987.

The included binaries did not work on the bots due to a glibc version issue.

TBR=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19988 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 08:08:56 +00:00
sgjesse@google.com 7ff44f77ac Update the test runner to use the new dart:io API
The new binaries are from r19850.

R=whesse@google.com, ager@google.com, ricow@google.com, kustermann@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19987 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 07:54:07 +00:00
devoncarew@google.com a4a72c29ca Updates to the new analyzer to help make the try bot happy.
Review URL: https://codereview.chromium.org//12438007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19946 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 17:06:20 +00:00
ricow@google.com ad5da2d318 Add support for the new analyzer to the testing scripts
Review URL: https://codereview.chromium.org//12776004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19885 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 18:18:26 +00:00
kustermann@google.com 4924f73340 Bugfix in test_progress.dart after refactoring
TBR=ricow

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19881 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:37:28 +00:00