Skip to content

Commit 7fdb196

Browse files
authored
Avoid for-loop elements at the top level (#1143)
Towards #1141 Work around the bug in the SDK by switching back to `..addAll`. After we publish this version that works we can bump the min SDK. Prepare to publish.
1 parent dcd9b51 commit 7fdb196

File tree

7 files changed

+21
-12
lines changed

7 files changed

+21
-12
lines changed

pkgs/test/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.11.1
2+
3+
* Allow `test_api` `0.2.13` to work around a bug in the SDK version `2.3.0`.
4+
15
## 1.11.0
26

37
* Add `file_reporters` configuration option and `--file-reporter` CLI option to

pkgs/test/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 1.11.1-dev
2+
version: 1.11.1
33
description: A full featured library for writing and running Dart tests.
44
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test
55

@@ -30,8 +30,8 @@ dependencies:
3030
web_socket_channel: ^1.0.0
3131
yaml: ^2.0.0
3232
# Use an exact version until the test_api and test_core package are stable.
33-
test_api: 0.2.12
34-
test_core: 0.2.17
33+
test_api: 0.2.13
34+
test_core: 0.2.18
3535

3636
dev_dependencies:
3737
fake_async: ^1.0.0

pkgs/test_api/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 0.2.13-dev
1+
## 0.2.13
22

3-
* Internal cleanup.
3+
* Work around a bug in the `2.3.0` SDK by avoiding for-loop elements at the top
4+
level.
45

56
## 0.2.12
67

pkgs/test_api/lib/src/backend/platform_selector.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ final _universalValidVariables = {
1616
'browser',
1717
'js',
1818
'blink',
19-
'google',
20-
for (var runtime in Runtime.builtIn) runtime.identifier,
21-
for (var os in OperatingSystem.all) os.identifier,
22-
};
19+
'google'
20+
}
21+
..addAll(Runtime.builtIn.map((r) => r.identifier))
22+
..addAll(OperatingSystem.all.map((os) => os.identifier));
2323

2424
/// An expression for selecting certain platforms, including operating systems
2525
/// and browsers.

pkgs/test_api/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_api
2-
version: 0.2.13-dev
2+
version: 0.2.13
33
description: A library for writing Dart tests.
44
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_api
55

pkgs/test_core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.18
2+
3+
* Allow `test_api` `0.2.13` to work around a bug in the SDK version `2.3.0`.
4+
15
## 0.2.17
26

37
* Add `file_reporters` configuration option and `--file-reporter` CLI option to

pkgs/test_core/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_core
2-
version: 0.2.18-dev
2+
version: 0.2.18
33
description: A basic library for writing tests and running them on the VM.
44
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core
55

@@ -31,7 +31,7 @@ dependencies:
3131
# properly constrains all features it provides.
3232
matcher: ">=0.12.6 <0.12.7"
3333
# Use an exact version until the test_api package is stable.
34-
test_api: 0.2.12
34+
test_api: 0.2.13
3535

3636
dependency_overrides:
3737
test_api:

0 commit comments

Comments
 (0)