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

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

Issue 10170008: fixes css tests, now they can also run in browsers too. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
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("SelectorLiteralTest");
5 #import("../../../css/css.dart"); 6 #import("../../../css/css.dart");
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();
12 options.useColors = false; 13 options.useColors = false;
13 14
14 testSimpleClassSelectorSuccesses(); 15 testSimpleClassSelectorSuccesses();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 Expect.equals("CssSelectorException: Use of Id selector must be " + 233 Expect.equals("CssSelectorException: Use of Id selector must be " +
233 "singleton starting at #_privateId2", e.toString()); 234 "singleton starting at #_privateId2", e.toString());
234 } 235 }
235 } 236 }
236 237
237 } 238 }
238 239
239 main() { 240 main() {
240 SelectorLiteralTest.testMain(); 241 SelectorLiteralTest.testMain();
241 } 242 }
OLDNEW
« utils/tests/css/src/DeclarationTest.dart ('K') | « utils/tests/css/src/ExpressionTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698