Commit graph

125 commits

Author SHA1 Message Date
Robert Nystrom 582cec84f4 Set up new test suites for migrating the tests to NNBD.
- Copies corelib_2/a*    -> corelib/
- Copies language_2/ab*  -> language/
- Copies lib_2/math/     -> lib/math/
- Copies standalone_2/a* -> standalone/

And also copies over and renames all of the status files in those
directories.

Then it migrates those tests to be static error free in NNBD.

Finally, adds support to the test_runner for the new suites.

Note that this review is split into multiple patchsets. The first
patchset is a straight copy of the existing files. Then the later
patchsets have the interesting changes.

Change-Id: Icec2ff850a3aee30b653066ac184495d1e3814d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125467
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2019-11-19 00:18:43 +00:00
Bob Nystrom f6ca2c1d8f Remove the Dart 1 tests.
This deletes:

tests/co19
tests/corelib
tests/html
tests/isolate
tests/language
tests/lib

It does not delete tests/standalone because apparently there are tests
in there that are not in standalone_2. (I assume they were added after
the test migration. I don't know why they were added there.)

I have tried to remove references to the old tests from various scripts
and tools but may have missed some. (As you can imagine, grepping for
"lib" does not have the best signal-to-noise ratio.)

"It was a pleasure to burn. It was a special pleasure to see things
eaten, to see things blackened and changed. With the brass nozzle in his
fists, with this great python spitting its venomous kerosene upon the
world, the blood pounded in his head, and his hands were the hands of
some amazing conductor playing all the symphonies of blazing and burning
to bring down the tatters and charcoal ruins of history."

- Ray Bradbury, Fahrenheit 451

Change-Id: If3db4a50e7a5ee25aff8058b1483e2ce8e68424e
Reviewed-on: https://dart-review.googlesource.com/c/75420
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-11 23:45:18 +00:00
Brian Wilkerson 386f8b2f5f Skip remaining Dart 1.0 tests
Change-Id: I8014cdb5d5cd154f52043593e577b29a01d71e2b
Reviewed-on: https://dart-review.googlesource.com/41601
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-02-15 14:14:07 +00:00
Paul Berry cca7b4419d Replace $builder_tag == strong with $strong in status files
The `$builder_tag == strong` annotations were added before test.py
supported `$strong`.  Now that `$strong` is supported, it's better to
use it directly to avoid confusion.

Change-Id: I715edecaee1e36ab8a26dbc96a6aa056e1be018f
Reviewed-on: https://dart-review.googlesource.com/39600
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-02-07 11:50:10 +00:00
Morten Krogh-Jespersen 3db4b1070b Normalize all status files and enable presubmit hook.
This CL normalizes all status files by the status file normalizer found at
pkg/status_file/bin/normalize.dart.

To make sure all status files are kept in pristine condition, a linter is placed
on the presubmit hook. The linter can be found at pkg/status_file/bin/lint.dart.

Bug:
Change-Id: I20bdb74824be65f079b8c9ab08b7ae38394d637f
Reviewed-on: https://dart-review.googlesource.com/24112
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2017-12-07 08:38:30 +00:00
Morten Krogh-Jespersen a9a5081e10 Remove duplicate entries in same section from status files.
If two sections are syntactically equal, they are considered same section.

The discovery of duplicate entries was perfomed by the test in the CL:
https://dart-review.googlesource.com/#/c/sdk/+/21341

All removals has been done by hand to make sure the best comment was chosen.

Bug:
Change-Id: I105f6375adc1b5f555eb7c2af7d7d1e4e1922a32
Reviewed-on: https://dart-review.googlesource.com/21340
Reviewed-by: Alexander Thomas <athom@google.com>
2017-11-27 11:07:18 +00:00
Terry Lucas 0585e74b63 Fixed analyzer test to use dart2js not dartium
R=paulberry@google.com

Committed: 704de3bb3e
Review-Url: https://codereview.chromium.org/3004153002 .
2017-09-01 09:03:16 -07:00
William Hesse a8cab7a205 Revert "Removed Dartium SDK libs"
This reverts commit 4a58918382.
That commit seems to have broken docgen on the html libraries.

BUG=
TBR=terry@google.com

Review-Url: https://codereview.chromium.org/3004173002 .
2017-09-01 00:47:57 +02:00
Terry Lucas 4a58918382 Removed Dartium SDK libs
First stage remove the libraries that are no longer part of 1.25 and beyond.

R=alanknight@google.com, sigmund@google.com

Committed: a18908461a
Committed: d96561af08
Review-Url: https://codereview.chromium.org/3008563002 .
2017-08-31 07:17:23 -07:00
Terry Lucas f1269525a8 Revert: Removed Dartium SDK libs
Review-Url: https://codereview.chromium.org/3005913003 .
2017-08-30 20:47:07 -07:00
Terry Lucas d96561af08 Removed Dartium SDK libs
First stage remove the libraries that are no longer part of 1.25 and beyond.

R=alanknight@google.com, sigmund@google.com

Committed: a18908461a
Review-Url: https://codereview.chromium.org/3008563002 .
2017-08-30 20:07:15 -07:00
Terry Lucas d0d5d6cc25 Revert "Revert "Removed Dartium test exceptions""
This reverts commit b85f66253c.

TBR=alanknight@google.com

Review-Url: https://codereview.chromium.org/2984613002 .
2017-07-19 05:51:54 -07:00
Johnni Winther b85f66253c Revert "Removed Dartium test exceptions"
This reverts commit 84f079f24c.

Review-Url: https://codereview.chromium.org/2983073002 .
2017-07-19 13:31:32 +02:00
Terry Lucas 84f079f24c Removed Dartium test exceptions
TBR=alanknight@google.com

Review-Url: https://codereview.chromium.org/2983033002 .
2017-07-18 13:18:14 -07:00
Brian Wilkerson 2ee2fe9b5c [Gardening] Disable running strong-mode analyzer tests in code that is not strong mode clean
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2679553003 .
2017-02-06 13:26:39 -08:00
William Hesse 7a718e62c6 Suppress analyze_library tests on the new analyzer bots
BUG=https://github.com/dart-lang/sdk/issues/28620

Review-Url: https://codereview.chromium.org/2674793004 .
2017-02-03 08:24:21 +01:00
William Hesse 33e89e66be Update status for analyze_libraries suite, and make it work with --use-sdk
BUG=https://github.com/dart-lang/sdk/issues/28620
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2671913002 .
2017-02-03 03:20:57 +01:00
Jacob Richman 410cde6023 Fix analyzer warnings in js_util_test, skip js_util_test in csp mode and baseline expectations for analyze_library.status
Update pkg/js CHANGELOG.md to address comment from previous CL.

BUG=

Review URL: https://codereview.chromium.org/2179153002 .
2016-07-25 13:20:25 -07:00
Alan Knight adf856186f Change Dartium expectations from CompileTimeError to StaticWarning
BUG=

Review URL: https://codereview.chromium.org/1919733003 .
2016-04-25 13:11:39 -07:00
Jacob Richman c1d669131b TBR. Turns out these tests still fail just for a different reason.
BUG=

Review URL: https://codereview.chromium.org/1586133006 .
2016-01-15 14:05:29 -08:00
Jacob Richman cf7ae2e0cb Support JS$ prefix for dart and fix bug where _operator_getter and the [] operator were used inconsistently. Would only impact future use cases where js APIs returned types not auto-proxied with dart:html.
Support typed JS interop classes that extend the behavior of  dart:html types in Dartium.

This theoretically enables supporting package:dom at the same time as dart:html as well as helping with
JavaScript libraries that monkey patch the dom.

Also support JS$ name prefix to resolve name conflicts with dart reserved words and with
dart:html libraries.
Cleanup addEventListener and friends so they are consistent with typed JS Interop and fix
bugs in the unlikely case where multiple functions have the same identity hash.
Add checks to make it easier to catch when allowInterop is accidentally omitted
when using the new typed JavaScript interop. You will now get an exception
any time you pass a Function to JS via the new typed interop without first
calling allowInterop.

BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1583773003 .
2016-01-15 10:40:32 -08:00
Terry L. Lucas 7b322c246c Dartium JS Enabled take 2
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1348173002 .
2015-09-16 07:13:53 -07:00
Terry L. Lucas 09c804aa78 Revert "Dartium JS Interop enabled."
This reverts commit 403bd1698d.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1345083002 .
2015-09-15 19:44:26 -07:00
Terry L. Lucas 403bd1698d Dartium JS Interop enabled.
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1349493003 .
2015-09-15 17:36:47 -07:00
terry@google.com ec66fa460b Updated to match 39 roll
Reviewers=paulberry@google.com,asiva@google.com
BUG=22623
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44139 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-02 19:00:24 +00:00
paulberry@google.com 7398f49c3c Update status file for bug 22623
TBR=terry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44129 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-02 14:54:47 +00:00
nweiz@google.com c8de060c54 Revert "Revert "Use native async/await support in pub.""
The VM now fully supports all the weird async stuff pub is doing, and all the
tests pass with native async/await!

Previous CLs were r43484 and r43483.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43897 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 22:28:54 +00:00
paulberry@google.com 4a5680aec8 Visit async and core library dependencies when computing library cycles.
Previously, we would create the Library objects for the core and async
libraries before calling _computeLibraryDependencies().  As a result,
_computeLibraryDependencies() would skip those libraries when
computing dependencies.  Normally this was not a problem, because the
dependencies surrounding the core and async libraries are so richly
intertwined that all of the necessary files got included in the cycle
anyhow.  However if the starting point of analysis was the
"dart:async" library, some files would be missed entirely, leading to
bogus warnings.

The solution is to let _computeLibraryDependencies() create all the
Library objects, even for the core and async libraries; this way it
won't skip any dependencies.

BUG=dartbug.com/22415
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43772 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 18:52:39 +00:00
karlklose@google.com 308b2c4a68 Mark test as failing.
R=sigurdm@google.com
BUG= http://dartbug.com/22415

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43761 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 14:58:09 +00:00
nweiz@google.com bbe0d9325c Revert "Use native async/await support in pub."
This caused SDK compilation issues that may have obscured pub test failures as
well.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43484 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 21:15:44 +00:00
nweiz@google.com 1835c63d0a Use native async/await support in pub.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43483 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-04 20:45:49 +00:00
nweiz@google.com b8d1c3a8b7 Regenerate pub's sources and remove workarounds for fixed issues.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43057 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-22 01:07:38 +00:00
nweiz@google.com c951660859 Don't analyze pub's command_runner library.
This works around https://github.com/dart-lang/async_await/issues/77.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42893 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-15 01:28:02 +00:00
whesse@google.com c61eb1fdb9 Update test status for analyzer error in DOM bindings code.
BUG=dartbug.com/21647
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41799 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-18 12:52:30 +00:00
johnniwinther@google.com 09fbe78e71 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41514 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:51:01 +00:00
johnniwinther@google.com 8637cfd322 Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler"
This reverts commit r41512.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41513 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 08:15:26 +00:00
johnniwinther@google.com 2b336e17f0 Move dart2js from sdk/lib/_internal/compiler to pkg/compiler
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41512 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-05 07:09:04 +00:00
nweiz@google.com cb75ee00bc Don't analyze async_await in the repo bots.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41411 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-30 00:55:17 +00:00
nweiz@google.com 1db48a68c7 Mark all pub files as potentially failing in the analyzer.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40407 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-17 22:14:02 +00:00
scheglov@google.com 8b5ea1f3a1 Restore analyzing lib/_internal with Dart-based analyzer.
It adds 8+ minutes (to the current 4) to the analysis time, but does not timeout anymore.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40280 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-15 21:45:17 +00:00
ricow@google.com 33dbdeea9c Remove analyzer suppression of analyze_library/lib/_internal/pub/lib/src/executable
This started passing after:
https://code.google.com/p/dart/source/detail?r=39787

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39791 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 06:01:50 +00:00
rnystrom@google.com f485ccfd7d Make analyzer bot happy again.
Review URL: https://codereview.chromium.org//515373002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39675 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 20:27:56 +00:00
rnystrom@google.com 9f052a7ef8 Fix two more analyzer bot failures.
Review URL: https://codereview.chromium.org//508323003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39629 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 00:30:49 +00:00
rnystrom@google.com 46a888019d Fix the analyzer bots.
Review URL: https://codereview.chromium.org//515783002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39627 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 00:12:01 +00:00
floitsch@google.com 9cf4d2df03 Work around warning in darttags.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36225 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-15 15:46:04 +00:00
efortuna@google.com 2a9588d03d Reapply "Fix analyzer errors in html Dartium."
BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36195 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 23:09:04 +00:00
efortuna@google.com 462ca6ea1e "Reverting 36191"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36193 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 22:23:07 +00:00
efortuna@google.com 78a040990d Fix analyzer errors in html Dartium.
BUG=
R=leafp@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36191 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 21:54:38 +00:00
paulberry@google.com 252f56f9ca Don't generate errors when failing to follow const constructor redirections.
In two cases (circular redirections and redirecting to a non-const
constructor), the error has already been reported.  The third case
(external factory constructor) is not an error condition.

Fixes test lib/_internal/compiler/samples/jsonify/jsonify.

BUG=
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35877 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 00:24:30 +00:00
paulberry@google.com 099f24cf0e In constant evaluation, properly handle redirecting factory constructors.
In order to unit test that this change doesn't regress the handling of
"const Symbol(...)", it was necessary to expand TestTypeProvider's
Symbol class to include the Symbol constructor.

Note: with this fix, analyzer detected a previously unknown flaw in
tests/language/switch_case_test.dart: class D didn't implement a
getter for x.  Test updated accordingly.

This change breaks test lib/_internal/compiler/samples/jsonify/jsonify
by changing analyzer's handling of bool.fromEnvironment().  I plan to
address this in a future changelist.

BUG=dartbug.com/17209
R=brianwilkerson@google.com, floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35853 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-07 16:27:03 +00:00