File tree 4 files changed +32
-14
lines changed
4 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 9
9
generate_for :
10
10
- web/main.dart
11
11
- web/sub/main.dart
12
- - test/config_specific_import_test .dart
13
- - test/config_specific_import_test .dart.browser_test.dart
12
+ - test/configurable_uri_test .dart
13
+ - test/configurable_uri_test .dart.browser_test.dart
14
14
- test/hello_world_test.dart
15
15
- test/hello_world_test.dart.browser_test.dart
16
16
- test/hello_world_deferred_test.dart
@@ -22,5 +22,5 @@ targets:
22
22
- test/sub-dir/subdir_test.dart.browser_test.dart
23
23
build_vm_compilers|entrypoint :
24
24
generate_for :
25
- - test/config_specific_import_test .dart.vm_test.dart
25
+ - test/configurable_uri_test .dart.vm_test.dart
26
26
- test/help_test.dart.vm_test.dart
Original file line number Diff line number Diff line change 5
5
generate_for :
6
6
- web/main.dart
7
7
- web/sub/main.dart
8
- - test/config_specific_import_test .dart
9
- - test/config_specific_import_test .dart.browser_test.dart
8
+ - test/configurable_uri_test .dart
9
+ - test/configurable_uri_test .dart.browser_test.dart
10
10
- test/hello_world_test.dart
11
11
- test/hello_world_test.dart.browser_test.dart
12
12
- test/hello_world_deferred_test.dart
@@ -18,5 +18,5 @@ targets:
18
18
- test/sub-dir/subdir_test.dart.browser_test.dart
19
19
build_vm_compilers|entrypoint :
20
20
generate_for :
21
- - test/config_specific_import_test .dart.vm_test.dart
21
+ - test/configurable_uri_test .dart.vm_test.dart
22
22
- test/help_test.dart.vm_test.dart
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ export 'message.dart'
6
+ if (dart.library.io) 'message_io.dart'
7
+ if (dart.library.html) 'message_html.dart' ;
Original file line number Diff line number Diff line change 4
4
5
5
import 'package:test/test.dart' ;
6
6
7
- // ignore: uri_does_not_exist
8
7
import 'common/message.dart'
9
- // ignore: uri_does_not_exist
10
8
if (dart.library.io) 'common/message_io.dart'
11
- // ignore: uri_does_not_exist
12
9
if (dart.library.html) 'common/message_html.dart' ;
13
10
11
+ import 'common/message_export.dart' as exported;
12
+
14
13
main () {
15
- test ( 'Message matches expected ' , () {
16
- if ( 1.0 is int ) {
14
+ group ( 'browser ' , () {
15
+ test ( 'imports' , ( ) {
17
16
expect (message, contains ('Javascript' ));
18
- } else {
17
+ });
18
+
19
+ test ('exports' , () {
20
+ expect (exported.message, contains ('Javascript' ));
21
+ });
22
+ }, testOn: 'browser' );
23
+
24
+ group ('vm' , () {
25
+ test ('imports' , () {
19
26
expect (message, contains ('VM' ));
20
- }
21
- });
27
+ });
28
+
29
+ test ('exports' , () {
30
+ expect (exported.message, contains ('VM' ));
31
+ });
32
+ }, testOn: 'vm' );
22
33
}
You can’t perform that action at this time.
0 commit comments