Add tests about the new ability to append stuffs on font urls
This commit is contained in:
parent
788a344278
commit
11b3526b85
@ -126,6 +126,14 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|||||||
evaluate("font-files('/font/name.woff')")
|
evaluate("font-files('/font/name.woff')")
|
||||||
end
|
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
|
assert_raises Sass::SyntaxError do
|
||||||
evaluate("font-files('/font/name.ext')")
|
evaluate("font-files('/font/name.ext')")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user