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

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

Issue 1851753002: Enable conditional directives by default. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix analyzer test. Created 4 years, 8 months 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 | « tests/compiler/dart2js/options_helper.dart ('k') | tests/language/language_analyzer2.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
6 // VMOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false --cond itional-directives 6 // VMOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false
7 7
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 import 'config_import_lib1a.dart' 10 import 'config_import_lib1a.dart'
11 if (id) 'config_import_lib1b.dart' 11 if (id) 'config_import_lib1b.dart'
12 if (not.set.id) 'config_import_lib1c.dart'; 12 if (not.set.id) 'config_import_lib1c.dart';
13 13
14 import 'config_import_lib2a.dart' 14 import 'config_import_lib2a.dart'
15 if (not.set.id) 'config_import_lib2b.dart' 15 if (not.set.id) 'config_import_lib2b.dart'
16 if (not.set.either) 'config_import_lib2c.dart'; 16 if (not.set.either) 'config_import_lib2c.dart';
17 17
18 import 'config_import_lib3a.dart' 18 import 'config_import_lib3a.dart'
19 if (dotted.id == "some_string") 'config_import_lib3b.dart' 19 if (dotted.id == "some_string") 'config_import_lib3b.dart'
20 if (id) 'config_import_lib3c.dart'; 20 if (id) 'config_import_lib3c.dart';
21 21
22 import 'config_import_lib4a.dart' 22 import 'config_import_lib4a.dart'
23 if (lots.of.dots.In.id == "other") 'config_import_lib4b.dart' 23 if (lots.of.dots.In.id == "other") 'config_import_lib4b.dart'
24 if (lots.of.dots.In.id == "false") 'config_import_lib4c.dart'; 24 if (lots.of.dots.In.id == "false") 'config_import_lib4c.dart';
25 25
26 main() { 26 main() {
27 Expect.equals("b", lib1()); 27 Expect.equals("b", lib1());
28 Expect.equals("a", lib2()); 28 Expect.equals("a", lib2());
29 Expect.equals("b", lib3()); 29 Expect.equals("b", lib3());
30 Expect.equals("c", lib4()); 30 Expect.equals("c", lib4());
31 } 31 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/options_helper.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698