This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
web_sdk/web_engine_tester Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,8 @@ class Chrome extends Browser {
8282 final String dir = environment.webUiDartToolDir.createTempSync ('test_chrome_user_data_' ).resolveSymbolicLinksSync ();
8383 final String jsFlags = enableWasmGC ? < String > [
8484 '--experimental-wasm-gc' ,
85- '--wasm-gc-js-interop' ,
8685 '--experimental-wasm-stack-switching' ,
8786 '--experimental-wasm-type-reflection' ,
88- '--wasm-gc-js-interop' ,
8987 ].join (' ' ) : '' ;
9088 final List <String > args = < String > [
9189 if (jsFlags.isNotEmpty) '--js-flags=$jsFlags ' ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ dev_dependencies:
2626 shelf_static : any
2727 shelf_web_socket : any
2828 stack_trace : any
29- stream_channel : any
29+ stream_channel : 2.1.1
3030 test : 1.22.0
3131 test_api : any
3232 test_core : any
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ import 'package:ui/src/engine/dom.dart';
1818
1919/// A class defined in content shell, used to control its behavior.
2020@JS ()
21- class _TestRunner {
21+ @staticInterop
22+ class _TestRunner {}
23+
24+ extension _TestRunnerExtension on _TestRunner {
2225 external void waitUntilDone ();
2326}
2427
@@ -32,15 +35,20 @@ external _TestRunner? get testRunner; // ignore: library_private_types_in_public
3235/// debugging.
3336@JS ()
3437@anonymous
38+ @staticInterop
3539class _JSApi {
3640 external factory _JSApi ({void Function () resume, void Function () restartCurrent});
41+ }
3742
43+ extension _JSApiExtension on _JSApi {
3844 /// Causes the test runner to resume running, as though the user had clicked
3945 /// the "play" button.
46+ // ignore: unused_element
4047 external Function get resume;
4148
4249 /// Causes the test runner to restart the current test once it finishes
4350 /// running.
51+ // ignore: unused_element
4452 external Function get restartCurrent;
4553}
4654
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ environment:
66
77dependencies :
88 js : 0.6.4
9- stream_channel : 2.1.0
9+ stream_channel : 2.1.1
1010 test : 1.22.0
1111 webkit_inspection_protocol : 1.0.0
1212 stack_trace : 1.10.0
You can’t perform that action at this time.
0 commit comments