[Sass] Add failing tests for quoted characters in selectors.

This commit is contained in:
Nathan Weizenbaum 2009-03-27 17:48:29 -07:00
parent 1a85dc2f22
commit 09e898bb0f
1 changed files with 33 additions and 0 deletions

View File

@ -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 = {})