Robert Nystrom
7ca5ad46ce
Set tests that have mixin errors as 2.19.
...
Mark tests that contain errors about using a class as a mixin to use
language version 2.19 where that's not an error.
This may not fix all of the tests because it's the language version of
the library where the class is declared that matters, not where the
class is used as a mixin. But most tests have all of their declarations
in the same library, so this should fix most.
Change-Id: I910439ebd2f10f731418dc588b7e4619a0841c16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285923
Reviewed-by: Jake Macdonald <jakemac@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
2023-03-01 15:03:39 +00:00
Srujan Gaddam
f93b5482af
[pkg:js] Transform childen in export creator
...
We should visit the children of StaticInvocations, as they may
contain calls to createDartExport.
Change-Id: Ib2d91a60c48f3d2ddb5c6ef385114ea343d591ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279071
Commit-Queue: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Riley Porter <rileyporter@google.com >
2023-01-18 21:34:35 +00:00
Srujan Gaddam
380b8f96ad
[pkg:js] Remove extraneous export prefix from export tests
...
Change-Id: If56b0be65150d4115aef4aa41a71eb27358492eb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264893
Reviewed-by: Riley Porter <rileyporter@google.com >
2022-10-26 16:34:38 +00:00
Srujan Gaddam
3bd2b4dd35
[pkg:js] Move mock tests into subfolder of export
...
Change-Id: I7ad17638b468dcdf749b2ea4441e7c5f5dd0a8cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264892
Reviewed-by: Riley Porter <rileyporter@google.com >
2022-10-26 16:34:38 +00:00
Srujan Gaddam
c14c0fdda3
[pkg:js] Refactor export and mock tests to use Strings
...
Allows for tests to pass with dart2wasm. This CL also adds these
tests to the test_matrix.json.
Change-Id: I970ef26b0fb377095c3889e6f52bef256d618850
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264604
Reviewed-by: Joshua Litt <joshualitt@google.com >
Reviewed-by: Kevin Moore <kevmoo@google.com >
2022-10-26 16:34:38 +00:00
Srujan Gaddam
dbb793a330
[pkg:js] Refactor createStaticInteropMock tests to account for new changes
...
Change-Id: I4de0c94bf1f00336432d61b174703fde9476545a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262863
Reviewed-by: Riley Porter <rileyporter@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Srujan Gaddam <srujzs@google.com >
2022-10-24 17:37:09 +00:00
Srujan Gaddam
316031d501
[pkg:js] Test export creation
...
While export creation covers both exports and mocks, we only test
createDartExport here.
Change-Id: I85bd65193644930768fdab7dfae9d54cf5ad2e31
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/261765
Reviewed-by: Riley Porter <rileyporter@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2022-10-24 17:37:09 +00:00
Srujan Gaddam
9453ff5273
[pkg:js] Add tests for export validation
...
Tests the various checks needed for @JSExport and createDartExport,
with and without inheritance. Also renames the mock directory to export.
Change-Id: Iae0233f1080a2f12f20b46ba1a6b30aeb36843a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260743
Reviewed-by: Riley Porter <rileyporter@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2022-10-24 17:37:09 +00:00