| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |