test for newlines in special functions

This commit is contained in:
ConnorSkees 2020-04-20 15:16:05 -04:00
parent 3e9e860e20
commit 716cb49991

View File

@ -8,6 +8,11 @@ test!(
"a {\n color: calc( 1 );\n}\n", "a {\n color: calc( 1 );\n}\n",
"a {\n color: calc( 1 );\n}\n" "a {\n color: calc( 1 );\n}\n"
); );
test!(
calc_newline,
"a {\n color: calc(\n);\n}\n",
"a {\n color: calc( );\n}\n"
);
test!( test!(
calc_multiple_args, calc_multiple_args,
"a {\n color: calc(1, 2, a, b, c);\n}\n" "a {\n color: calc(1, 2, a, b, c);\n}\n"
@ -32,6 +37,11 @@ test!(
"a {\n color: element( 1 );\n}\n", "a {\n color: element( 1 );\n}\n",
"a {\n color: element( 1 );\n}\n" "a {\n color: element( 1 );\n}\n"
); );
test!(
element_newline,
"a {\n color: element(\n);\n}\n",
"a {\n color: element( );\n}\n"
);
test!( test!(
element_multiple_args, element_multiple_args,
"a {\n color: element(1, 2, a, b, c);\n}\n" "a {\n color: element(1, 2, a, b, c);\n}\n"
@ -62,6 +72,11 @@ test!(
"a {\n color: expression( 1 );\n}\n", "a {\n color: expression( 1 );\n}\n",
"a {\n color: expression( 1 );\n}\n" "a {\n color: expression( 1 );\n}\n"
); );
test!(
expression_newline,
"a {\n color: expression(\n);\n}\n",
"a {\n color: expression( );\n}\n"
);
test!( test!(
expression_multiple_args, expression_multiple_args,
"a {\n color: expression(1, 2, a, b, c);\n}\n" "a {\n color: expression(1, 2, a, b, c);\n}\n"
@ -92,6 +107,11 @@ test!(
"a {\n color: progid:( 1 );\n}\n", "a {\n color: progid:( 1 );\n}\n",
"a {\n color: progid:( 1 );\n}\n" "a {\n color: progid:( 1 );\n}\n"
); );
test!(
progid_newline,
"a {\n color: progid:(\n);\n}\n",
"a {\n color: progid:( );\n}\n"
);
test!( test!(
progid_multiple_args, progid_multiple_args,
"a {\n color: progid:(1, 2, a, b, c);\n}\n" "a {\n color: progid:(1, 2, a, b, c);\n}\n"