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

Side by Side Diff: utils/tests/css/src/SelectorLiteralTest.dart

Issue 8823010: frog: life is better with colors :) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 9 years 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 | « frog/world.dart ('k') | no next file » | 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 #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
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 }
OLDNEW
« no previous file with comments | « frog/world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698