80281e6f6c
These tests need to run on dart2wasm but use `dart:js_util`, which dart2wasm will no longer support. `js_util` isn't core to the behavior being tested in tests/lib/js/static_interop_test/; it's simply how the expectations were written. This CL migrates those tests to use the new `dart:js_interop` APIs for expectations. Since dart2wasm no longer supports `dart:js_util`, which includes `createStaticInteropMock`, it can simply skip tests/lib/js/export/static_interop_mock/* in the status file. We also split up tests/lib/js/export/functional_test into two separate tests - one for `createDartExport` (which is also skipped on dart2wasm), and one for `createJSInteropWrapper` (which runs on all web backends). These tests can still share most of the code in a common library. Bug: #61550 Change-Id: I6a6a6964b6f914fea5b42101204ab80910c49b36 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/451221 Reviewed-by: Srujan Gaddam <srujzs@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.