mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] [SCSS] Add tests for various hacks.
This commit is contained in:
parent
68bdbd0cf2
commit
b29e601e1b
1 changed files with 20 additions and 0 deletions
|
@ -187,6 +187,15 @@ foo {
|
|||
SCSS
|
||||
end
|
||||
|
||||
def test_declaration_hacks
|
||||
assert_parses <<SCSS
|
||||
foo {
|
||||
_name: val;
|
||||
*name: val;
|
||||
name: val; }
|
||||
SCSS
|
||||
end
|
||||
|
||||
## Directives
|
||||
|
||||
def test_charset_directive
|
||||
|
@ -478,6 +487,17 @@ SCSS
|
|||
assert_selector_parses(':foo(-++--baz-"bar"12px)')
|
||||
end
|
||||
|
||||
def test_selector_hacks
|
||||
assert_selector_parses('> E')
|
||||
assert_selector_parses('+ E')
|
||||
assert_selector_parses('~ E')
|
||||
assert_selector_parses('>> E')
|
||||
|
||||
assert_selector_parses('E*')
|
||||
assert_selector_parses('E*.foo')
|
||||
assert_selector_parses('E*:hover')
|
||||
end
|
||||
|
||||
## Errors
|
||||
|
||||
def test_invalid_directives
|
||||
|
|
Loading…
Add table
Reference in a new issue