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

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

Issue 2833073002: Stoppp using trippple consonants (Closed)
Patch Set: More spolling Created 3 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
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 = false; 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"));
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const bool.fromEnvironment("dart.library.web_sql", 52 const bool.fromEnvironment("dart.library.web_sql",
53 defaultValue: NOT_PRESENT)); 53 defaultValue: NOT_PRESENT));
54 } 54 }
55 55
56 bool hasIoSupport; 56 bool hasIoSupport;
57 hasIoSupport = true; // //# has_io_support: ok 57 hasIoSupport = true; // //# has_io_support: ok
58 hasIoSupport = false; // //# has_no_io_support: ok 58 hasIoSupport = false; // //# has_no_io_support: ok
59 59
60 if (hasIoSupport != null) { 60 if (hasIoSupport != null) {
61 // Dartium overrides 'dart.library.io' to return "false". 61 // Dartium overrides 'dart.library.io' to return "false".
62 // We don't test for the non-existance, but just make sure that 62 // We don't test for the non-existence, but just make sure that
63 // dart.library.io is not set to true. 63 // dart.library.io is not set to true.
64 Expect.equals(hasIoSupport, 64 Expect.equals(hasIoSupport,
65 const bool.fromEnvironment("dart.library.io", defaultValue: false)); 65 const bool.fromEnvironment("dart.library.io", defaultValue: false));
66 } 66 }
67 67
68 bool hasMirrorSupport; 68 bool hasMirrorSupport;
69 hasMirrorSupport = true; // //# has_mirror_support: ok 69 hasMirrorSupport = true; // //# has_mirror_support: ok
70 hasMirrorSupport = false; // //# has_no_mirror_support: ok 70 hasMirrorSupport = false; // //# has_no_mirror_support: ok
71 71
72 if (hasMirrorSupport != null) { 72 if (hasMirrorSupport != null) {
(...skipping 17 matching lines...) Expand all
90 NOT_PRESENT, 90 NOT_PRESENT,
91 const bool.fromEnvironment("dart.library.converT", 91 const bool.fromEnvironment("dart.library.converT",
92 defaultValue: NOT_PRESENT)); 92 defaultValue: NOT_PRESENT));
93 Expect.equals(NOT_PRESENT, 93 Expect.equals(NOT_PRESENT,
94 const bool.fromEnvironment("dart.library.", defaultValue: NOT_PRESENT)); 94 const bool.fromEnvironment("dart.library.", defaultValue: NOT_PRESENT));
95 Expect.equals( 95 Expect.equals(
96 NOT_PRESENT, 96 NOT_PRESENT,
97 const bool.fromEnvironment("dart.library.core ", 97 const bool.fromEnvironment("dart.library.core ",
98 defaultValue: NOT_PRESENT)); 98 defaultValue: NOT_PRESENT));
99 } 99 }
OLDNEW
« no previous file with comments | « tests/language/closure_parameter_types_test.dart ('k') | tests/language_strong/closure_parameter_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698