test/sass/engine_test.rb in sass-3.1.0.alpha.36 vs test/sass/engine_test.rb in sass-3.1.0.alpha.37
- old
+ new
@@ -54,16 +54,12 @@
"a\n b: 1b % 2c" => "Cannot modulo by a number with units: 2c.",
"$a: 2px + #ccc" => "Cannot add a number with units (2px) to a color (#cccccc).",
"$a: #ccc + 2px" => "Cannot add a number with units (2px) to a color (#cccccc).",
"& a\n :b c" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 1],
"a\n :b\n c" => "Illegal nesting: Only properties may be nested beneath properties.",
- "a,\n :b c" => ["Rules can\'t end in commas.", 1],
- "a," => "Rules can\'t end in commas.",
- "a,\n$b: 1" => ["Rules can\'t end in commas.", 1],
"$a: b\n :c d\n" => "Illegal nesting: Nothing may be nested beneath variable declarations.",
"@import foo.sass" => "File to import not found or unreadable: foo.sass.",
- "a,\n$b: 1" => ["Rules can\'t end in commas.", 1],
"$a: b\n :c d\n" => "Illegal nesting: Nothing may be nested beneath variable declarations.",
"@import foo.sass" => <<MSG,
File to import not found or unreadable: foo.sass.
Load path: .
MSG
@@ -608,9 +604,15 @@
assert_equal("#foo #bar, #baz #boom { foo: bar; }\n",
render("#foo #bar,\n#baz #boom\n :foo bar", :style => :compact))
assert_equal("#foo #bar,#baz #boom{foo:bar}\n",
render("#foo #bar,\n#baz #boom\n :foo bar", :style => :compressed))
+
+ assert_equal("#foo #bar,\n#baz #boom {\n foo: bar; }\n",
+ render("#foo #bar,,\n,#baz #boom,\n :foo bar"))
+
+ assert_equal("#bip #bop {\n foo: bar; }\n",
+ render("#bip #bop,, ,\n :foo bar"))
end
def test_complex_multiline_selector
renders_correctly "multiline"
end