add ignored scope tests for mixins and functions
This commit is contained in:
parent
25862a5af8
commit
6faf30795e
@ -143,3 +143,16 @@ test!(
|
||||
}",
|
||||
"a {\n color: red;\n}\n"
|
||||
);
|
||||
test!(
|
||||
#[ignore = "haven't yet figured out how scoping works"]
|
||||
function_ignores_the_scope_with_which_it_was_defined,
|
||||
"a {
|
||||
$a: red;
|
||||
@function foo() {
|
||||
@return $a;
|
||||
}
|
||||
$a: green;
|
||||
color: foo();
|
||||
}",
|
||||
"a {\n color: green;\n}\n"
|
||||
);
|
||||
|
@ -364,3 +364,16 @@ error!(
|
||||
}",
|
||||
"Error: Missing argument $a."
|
||||
);
|
||||
test!(
|
||||
#[ignore = "haven't yet figured out how scoping works"]
|
||||
mixin_ignores_the_scope_with_which_it_was_defined,
|
||||
"a {
|
||||
$a: red;
|
||||
@mixin foo {
|
||||
color: $a;
|
||||
}
|
||||
$a: green;
|
||||
@include foo;
|
||||
}",
|
||||
"a {\n color: green;\n}\n"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user