Add tests about the new ability to append stuffs on font urls

This commit is contained in:
Maxime Thirouin 2012-03-13 21:54:07 +01:00
parent 788a344278
commit 11b3526b85

View File

@ -126,6 +126,14 @@ class SassExtensionsTest < Test::Unit::TestCase
evaluate("font-files('/font/name.woff')")
end
assert_nothing_raised Sass::SyntaxError do
evaluate("font-files('/font/name.svg#fontId')")
end
assert_nothing_raised Sass::SyntaxError do
evaluate("font-files('/font/name.eot?#iefix')")
end
assert_raises Sass::SyntaxError do
evaluate("font-files('/font/name.ext')")
end