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 #library("selector_literal_tests"); | 5 library selector_literal_tests; |
6 #import("../../css/css.dart"); | 6 import '../../css/css.dart'; |
7 | 7 |
8 final String ERROR = 'CompilerException: <buffer>:'; | 8 final String ERROR = 'CompilerException: <buffer>:'; |
9 | 9 |
10 main() { | 10 main() { |
11 initCssWorld(); | 11 initCssWorld(); |
12 options.useColors = false; | 12 options.useColors = false; |
13 | 13 |
14 testSimpleClassSelectorSuccesses(); | 14 testSimpleClassSelectorSuccesses(); |
15 testSimpleClassSelectorFailures(); | 15 testSimpleClassSelectorFailures(); |
16 testPrivateNameFailures(); | 16 testPrivateNameFailures(); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // Too many element IDs. | 226 // Too many element IDs. |
227 css = '@{#_privateId1 #_privateId2}'; | 227 css = '@{#_privateId1 #_privateId2}'; |
228 try { | 228 try { |
229 cssParseAndValidate('${css}', cssWorld); | 229 cssParseAndValidate('${css}', cssWorld); |
230 Expect.fail("${css} should not succeed."); | 230 Expect.fail("${css} should not succeed."); |
231 } catch (e) { | 231 } catch (e) { |
232 Expect.equals("CssSelectorException: Use of Id selector must be " + | 232 Expect.equals("CssSelectorException: Use of Id selector must be " + |
233 "singleton starting at #_privateId2", e.toString()); | 233 "singleton starting at #_privateId2", e.toString()); |
234 } | 234 } |
235 } | 235 } |
OLD | NEW |