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

Side by Side Diff: test/error_test.dart

Issue 1131243005: pkg/csslib: use pkg/test and allow latest version of logging pkg (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « test/declaration_test.dart ('k') | test/extend_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 error_test; 5 library error_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:csslib/src/messages.dart';
8 import 'package:test/test.dart';
9
8 import 'testing.dart'; 10 import 'testing.dart';
9 import 'package:csslib/src/messages.dart';
10 11
11 /** 12 /**
12 * Test for unsupported font-weights values of bolder, lighter and inherit. 13 * Test for unsupported font-weights values of bolder, lighter and inherit.
13 */ 14 */
14 void testUnsupportedFontWeights() { 15 void testUnsupportedFontWeights() {
15 var errors = []; 16 var errors = [];
16 17
17 // TODO(terry): Need to support bolder. 18 // TODO(terry): Need to support bolder.
18 // font-weight value bolder. 19 // font-weight value bolder.
19 var input = ".foobar { font-weight: bolder; }"; 20 var input = ".foobar { font-weight: bolder; }";
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 } 345 }
345 346
346 main() { 347 main() {
347 test('font-weight value errors', testUnsupportedFontWeights); 348 test('font-weight value errors', testUnsupportedFontWeights);
348 test('line-height value errors', testUnsupportedLineHeights); 349 test('line-height value errors', testUnsupportedLineHeights);
349 test('bad selectors', testBadSelectors); 350 test('bad selectors', testBadSelectors);
350 test('bad Hex values', testBadHexValues); 351 test('bad Hex values', testBadHexValues);
351 test('bad unicode ranges', testBadUnicode); 352 test('bad unicode ranges', testBadUnicode);
352 test('nested rules', testBadNesting); 353 test('nested rules', testBadNesting);
353 } 354 }
OLDNEW
« no previous file with comments | « test/declaration_test.dart ('k') | test/extend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698