OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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("../../../css/css.dart"); | 5 #import("../../../css/css.dart"); |
| 6 #import('../../../../frog/lang.dart', prefix:'lang'); |
6 | 7 |
7 class SelectorLiteralTest { | 8 class SelectorLiteralTest { |
8 static final String ERROR = 'CompilerException: <buffer>:'; | 9 static final String ERROR = 'CompilerException: <buffer>:'; |
9 | 10 |
10 static testMain() { | 11 static testMain() { |
11 initCssWorld(); | 12 initCssWorld(); |
| 13 lang.options.useColors = false; |
12 | 14 |
13 testSimpleClassSelectorSuccesses(); | 15 testSimpleClassSelectorSuccesses(); |
14 testSimpleClassSelectorFailures(); | 16 testSimpleClassSelectorFailures(); |
15 testPrivateNameFailures(); | 17 testPrivateNameFailures(); |
16 } | 18 } |
17 | 19 |
18 static void testSimpleClassSelectorSuccesses() { | 20 static void testSimpleClassSelectorSuccesses() { |
19 List<String> knownClasses = ['foobar', 'xyzzy', 'a-story', 'b-story']; | 21 List<String> knownClasses = ['foobar', 'xyzzy', 'a-story', 'b-story']; |
20 List<String> knownIds = ['id1', 'id2', 'id-number-3']; | 22 List<String> knownIds = ['id1', 'id2', 'id-number-3']; |
21 | 23 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 Expect.equals("CssSelectorException: Use of Id selector must be " + | 234 Expect.equals("CssSelectorException: Use of Id selector must be " + |
233 "singleton starting at #_privateId2", e.toString()); | 235 "singleton starting at #_privateId2", e.toString()); |
234 } | 236 } |
235 } | 237 } |
236 | 238 |
237 } | 239 } |
238 | 240 |
239 main() { | 241 main() { |
240 SelectorLiteralTest.testMain(); | 242 SelectorLiteralTest.testMain(); |
241 } | 243 } |
OLD | NEW |