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

Side by Side Diff: utils/tests/css/selector_literal_test.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « utils/tests/css/expression_test.dart ('k') | utils/tests/peg/peg_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « utils/tests/css/expression_test.dart ('k') | utils/tests/peg/peg_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698