Commit Graph

1865 Commits

Author SHA1 Message Date
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
floitsch@google.com 65718c56df Rename XMatching to XWhere.
For example firstMatching -> firstWhere.

BUG= http://dartbug.com/8664
BUG= http://dartbug.com/8337

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19880 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:34:49 +00:00
kustermann@google.com 53497f0c2c Refactoring of ProgressIndicator
Currently ProcessQueue creates and depends on exactly ONE ProgressIndicator.
This is not optimal for the following reasons:

 a) The used ProgressIndicator has several responsibilities (printing timing information,
    setting 'io.exitCode', printing test failures, ...)
    Splitting these responsibilities into different classes makes the code cleaner and more testable.

 b) If we make ProcessQueue depended on an abstract EventListener object (or a list of them) and make
    it send events to those listeners would make it easier to test ProcessQueue itself.

Issue: 8095

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19867 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 14:09:05 +00:00
floitsch@google.com 5dc8107c53 Revert "Remove Expect from core library."
This reverts commit 19755.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19756 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 03:19:07 +00:00
floitsch@google.com 12dbd2fd70 Remove Expect from core library.
Review URL: https://codereview.chromium.org//12212016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19755 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:40:37 +00:00
kustermann@google.com b14b9f7008 Pass half the timeout to run_selenium.py
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19686 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:51:37 +00:00
iposva@google.com ee927443e0 - Add simarm and simmips to --arch=all for builds and tests.
Review URL: https://codereview.chromium.org//12690002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19684 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:46:56 +00:00
floitsch@google.com d876e7ce7a Add 'diff' option to progress.
Review URL: https://codereview.chromium.org//12611005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19639 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 16:48:19 +00:00
ager@google.com ee442f190e Add dart analyzer test suite 'analyze_library' that fails if we
introduce static type warnings in certain dart libraries.

I wanted this for dart:io and might as well add it for the other
libraries that have no warnings when analyzed.

This required a bit of test script reworking. dartc used a leading
hash in a file to determine if it was a test. That is now broken
and has been removed. This also allowed me to override the
readOptionsFromFile method in test suites so that certain analyzer
test suites can require all tests to be static clean.

R=ricow@google.com,kustermann@google.com,sgjesse@google.com,danrubel@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19597 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 07:25:32 +00:00
kustermann@google.com d1d19278f5 Fixed missing 'io.' prefixes on exit() calls
Review URL: https://codereview.chromium.org//12378073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19451 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 09:29:08 +00:00
kustermann@google.com c7857e7c0b Quote all arguments when printing a Command
Review URL: https://codereview.chromium.org//12379041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19291 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 10:33:59 +00:00
kasperl@google.com f54583de00 Add --csp flag to test.dart.
When running test with that flag we make sure the HTTP server emits
Content-Security-Policy restriction headers and we pass --disallow-unsafe-eval
to dart2js.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19208 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 08:59:33 +00:00
devoncarew@google.com f6d7f5251c Remove r09 of guava; make sure all the dartc files are updated to use r13.
Review URL: https://codereview.chromium.org//12326093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18989 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 18:26:34 +00:00
kustermann@google.com 90e2760642 Start two http servers for every configuration
This should fix: http://dartbug.com/8366

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18964 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 11:54:20 +00:00
kustermann@google.com d2c575c0b0 Create generated tests inside the build directory
Patch Set 1 is a revert of r18295.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18802 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-21 08:10:37 +00:00
floitsch@google.com ecce8a6293 Remove deprecated Strings class.
Review URL: https://codereview.chromium.org//12295014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18686 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:57:03 +00:00
kustermann@google.com 31444b97f9 Print testCase.commands only once if --verbose was specified
Review URL: https://codereview.chromium.org//12302018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18663 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 09:43:22 +00:00
blois@google.com 5871625004 Adding the ability for the test server to listen on non-loopback addrs.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18489 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 22:27:30 +00:00