dart-sdk/tests/lib
Srujan Gaddam 6fbd07f2b0 [dart:js_interop] Reach (mostly) parity with js_util
https://github.com/dart-lang/sdk/issues/54004

In order to reach parity with js_util, we expose operators
through an extension and do some partial renames in order
to make the member names sound better e.g. `equals` instead
of `equal`. We also expose the following from js_util:

- NullRejectionException

We don't expose `isJavaScriptArray` and `isJavaScriptSimpleObject`
as they can expressed through other forms of interop. There
was an esoteric bug where we needed these members for Firefox
in pkg:test, but the package no longer uses these members, so to
avoid increasing the API space too much, we do not export them.

For the same reason, we also don't expose `objectGetPrototypeOf`,
`objectPrototype`, `objectKeys`.

We don't expose `allowInteropCaptureThis` as it will take some
work to handle this in dart2wasm. That work is tracked in
https://github.com/dart-lang/sdk/issues/54381.

Lastly, `instanceof` and `instanceOfString` is moved to be on
`JSAny?`, as this operator is useful to avoid needing to
downcast to `JSObject` e.g. `any.instanceOfString('Window')`
instead of `any.typeofEquals('object') &&
(any as JSObject).instanceOfString('Window')`.

Extensions are reorganized and renamed to handle these changes.

CoreLibraryReviewExempt: Backend-specific library.
Change-Id: Ib1a7fabc3fa985ef6638620becccd27eeca68c25
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/341140
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2023-12-25 20:02:49 +00:00
..
analyzer
async [tests] follow up comments on peridic_timer tests 2023-11-07 17:47:20 +00:00
collection [flip-modifiers]: prep more tests for the class modifiers flag flip 2023-03-06 20:52:03 +00:00
convert [dart2wasm] Fix string array copy in UTF8 decoder 2023-10-24 12:02:48 +00:00
developer [ dart:developer ] Remove Metrics related classes 2023-03-10 16:50:10 +00:00
fix_data_tests Remove deprecated APIs from dart:developer 2022-07-19 07:10:03 +00:00
html [dart:html] Remove cache_test 2023-11-28 01:45:57 +00:00
isolate [gardening] Use Platform.lineTerminator in remove_error_listener_test expectations. 2023-11-09 22:54:03 +00:00
js [dart:js_interop] Reach (mostly) parity with js_util 2023-12-25 20:02:49 +00:00
js_interop_unsafe [dart:js_interop] Reach (mostly) parity with js_util 2023-12-25 20:02:49 +00:00
math Spelling tests 2023-01-19 16:24:29 +00:00
mirrors [vm] Add minimal support for mirrors of extension type members 2023-12-07 21:48:50 +00:00
typed_data Reapply "[typed_data] Deprecate UnmodifiableUint8ListView and friends" 2023-10-23 18:14:33 +00:00
web
lib.status [dart:js_interop] Move JS types to extension types 2023-12-06 21:59:58 +00:00
lib_analyzer.status
lib_app_jit.status
lib_dart2js.status [tests] Skip multiple html and co19/html tests. 2023-11-10 01:20:39 +00:00
lib_dartdevc.status [tests] Skip multiple html and co19/html tests. 2023-11-10 01:20:39 +00:00
lib_kernel.status [gardening] Mark all tests as slow in debug-ia32 mode 2022-07-21 10:22:45 +00:00
lib_precompiled.status [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
lib_vm.status [test] Remove ARM64-specific status entries. 2023-10-09 19:30:29 +00:00