[Sass] Add failing tests for quoted characters in selectors.
This commit is contained in:
parent
1a85dc2f22
commit
09e898bb0f
|
@ -627,6 +627,39 @@ foo {
|
|||
CSS
|
||||
end
|
||||
|
||||
def test_quoted_colon
|
||||
assert_equal(<<CSS, render(<<SASS))
|
||||
a b[foo="bar: baz"] {
|
||||
c: d; }
|
||||
CSS
|
||||
a
|
||||
b[foo="bar: baz"]
|
||||
c: d
|
||||
SASS
|
||||
end
|
||||
|
||||
def test_quoted_comma
|
||||
assert_equal(<<CSS, render(<<SASS))
|
||||
a b[foo="bar, baz"] {
|
||||
c: d; }
|
||||
CSS
|
||||
a
|
||||
b[foo="bar, baz"]
|
||||
c: d
|
||||
SASS
|
||||
end
|
||||
|
||||
def test_quoted_ampersand
|
||||
assert_equal(<<CSS, render(<<SASS))
|
||||
a b[foo="bar & baz"] {
|
||||
c: d; }
|
||||
CSS
|
||||
a
|
||||
b[foo="bar & baz"]
|
||||
c: d
|
||||
SASS
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def render(sass, options = {})
|
||||
|
|
Loading…
Reference in New Issue