dart-sdk/tests/lib/js
Srujan Gaddam e1834792c3 [dart:js_interop] Fix comparison operator return types
Fixes https://github.com/dart-lang/sdk/issues/55024

The patch files for these operators return a bool, whereas
the public API returns a JSBoolean. Since there's only one
possible return type, we should make them return bool for
convenience. Boolean conversion is also inexpensive on
dart2wasm, so that shouldn't be an issue.

Also adds helpers to operator_test to make sure any JS values
are converted before they're compared, adding additional type
checking through the conversion.

CoreLibraryReviewExempt: Fixes type mismatch in backend-specific library.
Change-Id: I7ff2e334e817e6e7d7d8d5091a4e5d570a496b03
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354702
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2024-03-04 21:10:02 +00:00
..
export [dart:js_interop] Add createJSInteropWrapper 2023-12-25 20:02:49 +00:00
extends_test [pkg:js] Add tests for inheritance type checks/casts and subtyping 2021-07-13 20:02:49 +00:00
js_util Use asyncTest instead of main async in JS interop tests 2024-01-05 00:21:29 +00:00
native_as_js_classes_static_test [pkg:js] Add @staticInterop annotation to package:js 2021-10-06 19:04:02 +00:00
static_interop_test [dart:js_interop] Fix comparison operator return types 2024-03-04 21:10:02 +00:00
subtyping_test [pkg:js] Add subtyping tests with liveness 2021-07-13 18:51:34 +00:00
array_test.dart Fixed various typos in a lot of files 2022-07-25 12:21:59 +00:00
constructor_parameters_static_test.dart [dart:js_interop] Apply param errors to inline classes 2023-05-22 21:50:51 +00:00
datetime_roundtrip_test.dart
extends_static_test.dart [package:js] Add static errors for invalid extends 2020-10-28 16:04:15 +00:00
external_member_static_test.dart [package:js] Add checks for external keyword 2020-09-25 23:30:34 +00:00
external_nonjs_static_test.dart [dart:js_interop] Allow interop inline classes to elide @JS 2023-06-13 23:27:23 +00:00
external_static_test.dart [dart:js_interop] Allow interop inline classes to elide @JS 2023-06-13 23:27:23 +00:00
implements_static_test.dart [pkg:js] Add tests for classes that implement JS interfaces 2020-11-18 01:22:39 +00:00
instanceof_test.dart [ddc, dart2js] Fix signature of js_util APIs expecting a constructor. 2020-04-03 04:54:56 +00:00
is_check_and_as_cast_test.dart [pkg:js] Test runtime is checks 2021-07-13 01:28:55 +00:00
js_annotation_static_test.dart [package:js] Remove stale TODOs from static error tests 2020-08-19 22:04:58 +00:00
method_call_on_object_test.dart [ddc] Fix method call on object without prototype 2020-07-31 01:29:44 +00:00
mock_test.dart Change js_mock_test to not use native types 2020-12-10 01:38:26 +00:00
no_library_annotation_test.dart [ddc] Do not require a @JS annotation at the library level. 2021-01-20 22:11:23 +00:00
null_test.dart use old function syntax on null_test 2020-01-17 01:49:35 +00:00
object_apis_interop_values_test.dart Test toString expectations for interop objects 2023-08-23 20:49:24 +00:00
object_apis_utils.dart Test toString expectations for interop objects 2023-08-23 20:49:24 +00:00
operator_static_test.dart [dart:js_interop] Reach (mostly) parity with js_util 2023-12-25 20:02:49 +00:00
parameters_static_test.dart [dart:js_interop] Apply param errors to inline classes 2023-05-22 21:50:51 +00:00
parameters_test.dart [package:js] Add JS test for function parameters 2020-05-28 00:00:04 +00:00
prototype_access_test.dart
static_class_member_static_test.dart [jsinterop] Add static check for JSName of static class members. 2022-06-03 17:02:26 +00:00
trust_types_annotation_test.dart [package:js] Add @trustTypes annotation. 2022-04-20 15:24:18 +00:00
trust_types_test.dart [package:js] Add @trustTypes annotation. 2022-04-20 15:24:18 +00:00
type_parameter_lowering_test.dart Reland "[ddc] Don't emit type args on interop invocations" 2023-09-07 00:54:57 +00:00