dart-sdk/tests/lib/js
Srujan Gaddam 86eb49ac19 [dart:js_interop] Disallow user @staticInterop classes from subtyping most dart:_js_types types
Since user @staticInterop types are erased to JavaScriptObject, they
should only be able to subtype other types that are :> JavaScriptObject,
which are just JSObject and JSAny. Eventually all the other JS types
will move to extension types and we can remove this check.

Change-Id: If56b6770e141238b583937880ca87496780c8fac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/316865
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-08-08 19:17:25 +00:00
..
export [dart:js_util] Handle type parameters in export/mocks. 2023-08-04 21:45:29 +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 [js] Ensure dartify / jsify have inverse semantics. 2023-03-08 00:07:42 +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] Disallow user @staticInterop classes from subtyping most dart:_js_types types 2023-08-08 19:17:25 +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_extension_members_test.dart [pkg:js] Lower external @staticInterop and extension members using invocation-level semantics 2023-05-09 23:12:58 +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
operator_static_test.dart [dart:js_interop] Disallow external operators using static interop 2023-05-22 21:50:51 +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