File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1005,6 +1005,16 @@ void testHangs() {
1005
1005
expect (errorMessage.span.text.trim (), '' );
1006
1006
}
1007
1007
1008
+ void testExpressionSpans () {
1009
+ final input = r'''.foo { width: 50px; }''' ;
1010
+ var stylesheet = parseCss (input);
1011
+ var decl = stylesheet.topLevels.single.declarationGroup.declarations.single;
1012
+ // This passes
1013
+ expect (decl.span.text, 'width: 50px' );
1014
+ // This currently fails
1015
+ expect (decl.expression.span.text, '50px' );
1016
+ }
1017
+
1008
1018
main () {
1009
1019
test ('Simple Terms' , testSimpleTerms);
1010
1020
test ('Declarations' , testDeclarations);
@@ -1021,4 +1031,6 @@ main() {
1021
1031
test ('IE stuff' , testIE);
1022
1032
test ('IE declaration syntax' , testIEDeclaration);
1023
1033
test ('Hanging bugs' , testHangs);
1034
+ test ('Expression spans' , testExpressionSpans,
1035
+ skip: 'expression spans are broken' );
1024
1036
}
You can’t perform that action at this time.
0 commit comments