OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 declaration_test; | 5 library declaration_test; |
6 | 6 |
7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
8 import 'testing.dart'; | 8 import 'testing.dart'; |
9 | 9 |
10 | 10 |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 | 1005 |
1006 expect(stylesheet != null, true); | 1006 expect(stylesheet != null, true); |
1007 | 1007 |
1008 expect(errors.length, 1, reason: errors.toString()); | 1008 expect(errors.length, 1, reason: errors.toString()); |
1009 | 1009 |
1010 errorMessage = errors[0]; | 1010 errorMessage = errors[0]; |
1011 expect(errorMessage.message, contains('unexpected end of file')); | 1011 expect(errorMessage.message, contains('unexpected end of file')); |
1012 expect(errorMessage.span, isNotNull); | 1012 expect(errorMessage.span, isNotNull); |
1013 expect(errorMessage.span.start.line, 7); | 1013 expect(errorMessage.span.start.line, 7); |
1014 expect(errorMessage.span.start.column, 0); | 1014 expect(errorMessage.span.start.column, 0); |
1015 expect(errorMessage.span.text, ''); | 1015 expect(errorMessage.span.text.trim(), ''); |
1016 } | 1016 } |
1017 | 1017 |
1018 main() { | 1018 main() { |
1019 test('Simple Terms', testSimpleTerms); | 1019 test('Simple Terms', testSimpleTerms); |
1020 test('Declarations', testDeclarations); | 1020 test('Declarations', testDeclarations); |
1021 test('Identifiers', testIdentifiers); | 1021 test('Identifiers', testIdentifiers); |
1022 test('Composites', testComposites); | 1022 test('Composites', testComposites); |
1023 test('Units', testUnits); | 1023 test('Units', testUnits); |
1024 test('Unicode', testUnicode); | 1024 test('Unicode', testUnicode); |
1025 test('Newer CSS', testNewerCss); | 1025 test('Newer CSS', testNewerCss); |
1026 test('Media Queries', testMediaQueries); | 1026 test('Media Queries', testMediaQueries); |
1027 test('Font-Face', testFontFace); | 1027 test('Font-Face', testFontFace); |
1028 test('CSS file', testCssFile); | 1028 test('CSS file', testCssFile); |
1029 test('Compact Emitter', testCompactEmitter); | 1029 test('Compact Emitter', testCompactEmitter); |
1030 test('Selector Negation', testNotSelectors); | 1030 test('Selector Negation', testNotSelectors); |
1031 test('IE stuff', testIE); | 1031 test('IE stuff', testIE); |
1032 test('IE declaration syntax', testIEDeclaration); | 1032 test('IE declaration syntax', testIEDeclaration); |
1033 test('Hanging bugs', testHangs); | 1033 test('Hanging bugs', testHangs); |
1034 } | 1034 } |
OLD | NEW |