| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |