| Index: tests/language/library_env_test.dart
|
| diff --git a/tests/language/library_env_test.dart b/tests/language/library_env_test.dart
|
| index bb193e6ed029c526074454f904f24f6834485e0e..f159bebb83651502a821caa2a1d0072ed3f9e1d4 100644
|
| --- a/tests/language/library_env_test.dart
|
| +++ b/tests/language/library_env_test.dart
|
| @@ -15,11 +15,11 @@ main() {
|
| Expect.isTrue(const bool.fromEnvironment("dart.library.developer"));
|
|
|
| // Internal libraries should not be exposed.
|
| - Expect.equals(
|
| - NOT_PRESENT,
|
| + Expect.equals(NOT_PRESENT,
|
| const bool.fromEnvironment("dart.library._internal",
|
| defaultValue: NOT_PRESENT));
|
|
|
| +
|
| bool hasHtmlSupport;
|
| hasHtmlSupport = true; // //# has_html_support: ok
|
| hasHtmlSupport = false; // //# has_no_html_support: ok
|
| @@ -27,28 +27,22 @@ main() {
|
| if (hasHtmlSupport != null) {
|
| bool expectedResult = hasHtmlSupport ? true : NOT_PRESENT;
|
|
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.html",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.indexed_db",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.svg",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.web_audio",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.web_gl",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.web_sql",
|
| defaultValue: NOT_PRESENT));
|
| }
|
| @@ -62,7 +56,8 @@ main() {
|
| // We don't test for the non-existance, but just make sure that
|
| // dart.library.io is not set to true.
|
| Expect.equals(hasIoSupport,
|
| - const bool.fromEnvironment("dart.library.io", defaultValue: false));
|
| + const bool.fromEnvironment("dart.library.io",
|
| + defaultValue: false));
|
| }
|
|
|
| bool hasMirrorSupport;
|
| @@ -72,28 +67,25 @@ main() {
|
| if (hasMirrorSupport != null) {
|
| bool expectedResult = hasMirrorSupport ? true : NOT_PRESENT;
|
|
|
| - Expect.equals(
|
| - expectedResult,
|
| + Expect.equals(expectedResult,
|
| const bool.fromEnvironment("dart.library.mirrors",
|
| defaultValue: NOT_PRESENT));
|
| }
|
|
|
| - Expect.equals(
|
| - NOT_PRESENT,
|
| + Expect.equals(NOT_PRESENT,
|
| const bool.fromEnvironment("dart.library.XYZ",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - NOT_PRESENT,
|
| + Expect.equals(NOT_PRESENT,
|
| const bool.fromEnvironment("dart.library.Collection",
|
| defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - NOT_PRESENT,
|
| + Expect.equals(NOT_PRESENT,
|
| const bool.fromEnvironment("dart.library.converT",
|
| defaultValue: NOT_PRESENT));
|
| Expect.equals(NOT_PRESENT,
|
| - const bool.fromEnvironment("dart.library.", defaultValue: NOT_PRESENT));
|
| - Expect.equals(
|
| - NOT_PRESENT,
|
| + const bool.fromEnvironment("dart.library.",
|
| + defaultValue: NOT_PRESENT));
|
| + Expect.equals(NOT_PRESENT,
|
| const bool.fromEnvironment("dart.library.core ",
|
| defaultValue: NOT_PRESENT));
|
| +
|
| }
|
|
|