1
0
Fork 0
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:
Nathan Weizenbaum 2009-12-27 18:08:43 -08:00
parent 68bdbd0cf2
commit b29e601e1b

View file

@ -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