diff --git a/integration_tests/wasm/test/hello_world_test.dart b/integration_tests/wasm/test/hello_world_test.dart index 0cd79979a..a4fab2d3e 100644 --- a/integration_tests/wasm/test/hello_world_test.dart +++ b/integration_tests/wasm/test/hello_world_test.dart @@ -4,7 +4,7 @@ @TestOn('wasm') // TODO: https://github.com/dart-lang/test/issues/2288 -@OnPlatform({'firefox': Skip()}) +@OnPlatform({'windows && firefox': Skip()}) // This retry is a regression test for https://github.com/dart-lang/test/issues/2006 @Retry(2) library; diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md index 8a6e13f8a..7959a1d7e 100644 --- a/pkgs/test/CHANGELOG.md +++ b/pkgs/test/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.25.15-wip +* Support using the OS platform selector to configure browser tests. + TODO: Longer changelog with potential impacts. + ## 1.25.14 * Use secure random for url secrets. diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml index c9d2641ec..8a27b9b22 100644 --- a/pkgs/test/pubspec.yaml +++ b/pkgs/test/pubspec.yaml @@ -35,8 +35,8 @@ dependencies: stream_channel: ^2.1.0 # Use an exact version until the test_api and test_core package are stable. - test_api: 0.7.4 - test_core: 0.6.8 + test_api: 0.7.5-wip + test_core: 0.6.9-wip typed_data: ^1.3.0 web_socket_channel: '>=2.0.0 <4.0.0' diff --git a/pkgs/test_api/CHANGELOG.md b/pkgs/test_api/CHANGELOG.md index 98d65baea..4fffa4e05 100644 --- a/pkgs/test_api/CHANGELOG.md +++ b/pkgs/test_api/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.7.5-wip + ## 0.7.4 * Allow `analyzer: '>=6.0.0 <8.0.0'` diff --git a/pkgs/test_api/lib/src/backend/suite_platform.dart b/pkgs/test_api/lib/src/backend/suite_platform.dart index baab6cee1..bdc30892e 100644 --- a/pkgs/test_api/lib/src/backend/suite_platform.dart +++ b/pkgs/test_api/lib/src/backend/suite_platform.dart @@ -38,9 +38,6 @@ final class SuitePlatform { this.os = OperatingSystem.none, this.inGoogle = false}) : compiler = compiler ?? runtime.defaultCompiler { - if (runtime.isBrowser && os != OperatingSystem.none) { - throw ArgumentError('No OS should be passed for runtime "$runtime".'); - } if (!runtime.supportedCompilers.contains(this.compiler)) { throw ArgumentError( 'The platform $runtime does not support the compiler ${this.compiler}'); diff --git a/pkgs/test_api/pubspec.yaml b/pkgs/test_api/pubspec.yaml index af5cb931d..17751fea2 100644 --- a/pkgs/test_api/pubspec.yaml +++ b/pkgs/test_api/pubspec.yaml @@ -1,5 +1,5 @@ name: test_api -version: 0.7.4 +version: 0.7.5-wip description: >- The user facing API for structuring Dart tests and checking expectations. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_api diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md index 4c305bc61..5e2553d0c 100644 --- a/pkgs/test_core/CHANGELOG.md +++ b/pkgs/test_core/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.6.9-wip + ## 0.6.8 * Fix hang when running multiple precompiled browser tests. diff --git a/pkgs/test_core/lib/src/util/io.dart b/pkgs/test_core/lib/src/util/io.dart index a082dd310..fa0cd2994 100644 --- a/pkgs/test_core/lib/src/util/io.dart +++ b/pkgs/test_core/lib/src/util/io.dart @@ -51,10 +51,12 @@ final currentOS = OperatingSystem.findByIoName(Platform.operatingSystem); /// [OperatingSystem.none]. // TODO: https://github.com/dart-lang/test/issues/2119 - require compiler SuitePlatform currentPlatform(Runtime runtime, [Compiler? compiler]) => - SuitePlatform(runtime, - compiler: compiler, - os: runtime.isBrowser ? OperatingSystem.none : currentOS, - inGoogle: inGoogle); + SuitePlatform( + runtime, + compiler: compiler, + os: currentOS, + inGoogle: inGoogle, + ); /// A transformer that decodes bytes using UTF-8 and splits them on newlines. final lineSplitter = StreamTransformer, String>( diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml index d08e24ca9..0516fbd77 100644 --- a/pkgs/test_core/pubspec.yaml +++ b/pkgs/test_core/pubspec.yaml @@ -1,5 +1,5 @@ name: test_core -version: 0.6.8 +version: 0.6.9-wip description: A basic library for writing tests and running them on the VM. repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core resolution: workspace @@ -27,7 +27,7 @@ dependencies: stack_trace: ^1.10.0 stream_channel: ^2.1.0 # Use an exact version until the test_api package is stable. - test_api: 0.7.4 + test_api: 0.7.5-wip vm_service: ">=6.0.0 <16.0.0" yaml: ^3.0.0