Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tests/language/config_import_test.dart

Issue 1380383002: Add support for configuration-specific imports to the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // DartOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false --co nditional-directives 5 // DartOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false --co nditional-directives
6 // VMOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false --cond itional-directives
6 7
7 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
8 9
9 import 'config_import_lib1a.dart' 10 import 'config_import_lib1a.dart'
10 if (id) 'config_import_lib1b.dart' 11 if (id) 'config_import_lib1b.dart'
11 if (not.set.id) 'config_import_lib1c.dart'; 12 if (not.set.id) 'config_import_lib1c.dart';
12 13
13 import 'config_import_lib2a.dart' 14 import 'config_import_lib2a.dart'
14 if (not.set.id) 'config_import_lib2b.dart' 15 if (not.set.id) 'config_import_lib2b.dart'
15 if (not.set.either) 'config_import_lib2c.dart'; 16 if (not.set.either) 'config_import_lib2c.dart';
16 17
17 import 'config_import_lib3a.dart' 18 import 'config_import_lib3a.dart'
18 if (dotted.id == "some_string") 'config_import_lib3b.dart' 19 if (dotted.id == "some_string") 'config_import_lib3b.dart'
19 if (id) 'config_import_lib3c.dart'; 20 if (id) 'config_import_lib3c.dart';
20 21
21 import 'config_import_lib4a.dart' 22 import 'config_import_lib4a.dart'
22 if (lots.of.dots.In.id == "other") 'config_import_lib4b.dart' 23 if (lots.of.dots.In.id == "other") 'config_import_lib4b.dart'
23 if (lots.of.dots.In.id == "false") 'config_import_lib4c.dart'; 24 if (lots.of.dots.In.id == "false") 'config_import_lib4c.dart';
24 25
25 main() { 26 main() {
26 Expect.equals("b", lib1()); 27 Expect.equals("b", lib1());
27 Expect.equals("a", lib2()); 28 Expect.equals("a", lib2());
28 Expect.equals("b", lib3()); 29 Expect.equals("b", lib3());
29 Expect.equals("c", lib4()); 30 Expect.equals("c", lib4());
30 } 31 }
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698