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

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

Issue 1748153003: Adjust expectations of library_env_test to take into account noopt, precompiled and product mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/language/language.status ('k') | no next file » | 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 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 main() { 7 main() {
8 const NOT_PRESENT = null; 8 const NOT_PRESENT = false;
9 9
10 Expect.isTrue(const bool.fromEnvironment("dart.library.async")); 10 Expect.isTrue(const bool.fromEnvironment("dart.library.async"));
11 Expect.isTrue(const bool.fromEnvironment("dart.library.collection")); 11 Expect.isTrue(const bool.fromEnvironment("dart.library.collection"));
12 Expect.isTrue(const bool.fromEnvironment("dart.library.convert")); 12 Expect.isTrue(const bool.fromEnvironment("dart.library.convert"));
13 Expect.isTrue(const bool.fromEnvironment("dart.library.core")); 13 Expect.isTrue(const bool.fromEnvironment("dart.library.core"));
14 Expect.isTrue(const bool.fromEnvironment("dart.library.typed_data")); 14 Expect.isTrue(const bool.fromEnvironment("dart.library.typed_data"));
15 Expect.isTrue(const bool.fromEnvironment("dart.library.developer")); 15 Expect.isTrue(const bool.fromEnvironment("dart.library.developer"));
16 16
17 // Internal libraries should not be exposed. 17 // Internal libraries should not be exposed.
18 Expect.equals(NOT_PRESENT, 18 Expect.equals(NOT_PRESENT,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const bool.fromEnvironment("dart.library.converT", 82 const bool.fromEnvironment("dart.library.converT",
83 defaultValue: NOT_PRESENT)); 83 defaultValue: NOT_PRESENT));
84 Expect.equals(NOT_PRESENT, 84 Expect.equals(NOT_PRESENT,
85 const bool.fromEnvironment("dart.library.", 85 const bool.fromEnvironment("dart.library.",
86 defaultValue: NOT_PRESENT)); 86 defaultValue: NOT_PRESENT));
87 Expect.equals(NOT_PRESENT, 87 Expect.equals(NOT_PRESENT,
88 const bool.fromEnvironment("dart.library.core ", 88 const bool.fromEnvironment("dart.library.core ",
89 defaultValue: NOT_PRESENT)); 89 defaultValue: NOT_PRESENT));
90 90
91 } 91 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698