File tree Expand file tree Collapse file tree 6 files changed +20
-3
lines changed
integration_tests/wasm/test Expand file tree Collapse file tree 6 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,12 @@ void main() {
1313 test ('1 == 1' , () {
1414 expect (1 , equals (1 ));
1515 });
16+
17+ test ('asserts are enabled' , () {
18+ expect (shouldFail, throwsA (isA <AssertionError >()));
19+ });
20+ }
21+
22+ void shouldFail () {
23+ assert (1 == 2 );
1624}
Original file line number Diff line number Diff line change 1+ ## 1.25.7
2+
3+ * Enable asserts for ` dart2wasm ` tests.
4+
15## 1.25.6
26
37* Point API doc links to ` package:test ` canonical libraries.
Original file line number Diff line number Diff line change 11name : test
2- version : 1.25.6
2+ version : 1.25.7
33description : >-
44 A full featured library for writing and running Dart tests across platforms.
55repository : https://github.com/dart-lang/test/tree/master/pkgs/test
@@ -35,7 +35,7 @@ dependencies:
3535
3636 # Use an exact version until the test_api and test_core package are stable.
3737 test_api : 0.7.2
38- test_core : 0.6.3
38+ test_core : 0.6.4
3939
4040 typed_data : ^1.3.0
4141 web_socket_channel : ' >=2.0.0 <4.0.0'
Original file line number Diff line number Diff line change 1+ ## 0.6.4
2+
3+ * Enable asserts for ` dart2wasm ` tests.
4+
15## 0.6.3
26
37* Update min SDK constraint to 3.2.0.
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class WasmCompilerPool extends CompilerPool {
3636 final process = await Process .start (Platform .resolvedExecutable, [
3737 'compile' ,
3838 'wasm' ,
39+ '--enable-asserts' ,
3940 '--packages=${(await packageConfigUri ).path }' ,
4041 for (var experiment in enabledExperiments)
4142 '--enable-experiment=$experiment ' ,
Original file line number Diff line number Diff line change 11name : test_core
2- version : 0.6.3
2+ version : 0.6.4
33description : A basic library for writing tests and running them on the VM.
44repository : https://github.com/dart-lang/test/tree/master/pkgs/test_core
55
You can’t perform that action at this time.
0 commit comments