From 11b3526b8548c3be5ee2c5ff00b315a5bd7c4422 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Tue, 13 Mar 2012 21:54:07 +0100 Subject: [PATCH] Add tests about the new ability to append stuffs on font urls --- test/units/sass_extensions_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/units/sass_extensions_test.rb b/test/units/sass_extensions_test.rb index ba2d524d..99194ddd 100644 --- a/test/units/sass_extensions_test.rb +++ b/test/units/sass_extensions_test.rb @@ -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