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

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

Issue 1388523002: dart2js: add support for configuration-specific imports. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update and fix status files. Implement missing functions. 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 | « tests/language/config_import_lib4c.dart ('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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 //
5 // DartOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false --co nditional-directives
6
7 import 'package:expect/expect.dart';
8
9 import 'config_import_lib1a.dart'
10 if (id) 'config_import_lib1b.dart'
11 if (not.set.id) 'config_import_lib1c.dart';
12
13 import 'config_import_lib2a.dart'
14 if (not.set.id) 'config_import_lib2b.dart'
15 if (not.set.either) 'config_import_lib2c.dart';
16
17 import 'config_import_lib3a.dart'
18 if (dotted.id == "some_string") 'config_import_lib3b.dart'
19 if (id) 'config_import_lib3c.dart';
20
21 import 'config_import_lib4a.dart'
22 if (lots.of.dots.In.id == "other") 'config_import_lib4b.dart'
23 if (lots.of.dots.In.id == "false") 'config_import_lib4c.dart';
24
25 main() {
26 Expect.equals("b", lib1());
27 Expect.equals("a", lib2());
28 Expect.equals("b", lib3());
29 Expect.equals("c", lib4());
30 }
OLDNEW
« no previous file with comments | « tests/language/config_import_lib4c.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698