"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/sass/functions_test.rb" between
sass-3.5.5.tar.gz and sass-3.5.6.tar.gz

About: Sass (Syntactically Awesome StyleSheets) is a CSS preprocessor (extension language) that adds "power and elegance" to the basic CSS language.

functions_test.rb  (sass-3.5.5):functions_test.rb  (sass-3.5.6)
skipping to change at line 1321 skipping to change at line 1321
evaluate("no-kw-args($fake: value)") evaluate("no-kw-args($fake: value)")
flunk("Expected exception") flunk("Expected exception")
rescue Sass::SyntaxError => e rescue Sass::SyntaxError => e
assert_equal("Function no_kw_args doesn't support keyword arguments", e.mess age) assert_equal("Function no_kw_args doesn't support keyword arguments", e.mess age)
end end
def test_keyword_args_with_missing_argument def test_keyword_args_with_missing_argument
evaluate("rgb($red: 255, $green: 255)") evaluate("rgb($red: 255, $green: 255)")
flunk("Expected exception") flunk("Expected exception")
rescue Sass::SyntaxError => e rescue Sass::SyntaxError => e
assert_equal("Function rgb requires an argument named $blue", e.message) assert_equal("wrong number of arguments (2 for 3) for `rgb'", e.message)
end end
def test_keyword_args_with_extra_argument def test_keyword_args_with_extra_argument
evaluate("rgb($red: 255, $green: 255, $blue: 255, $purple: 255)") evaluate("rgb($red: 255, $green: 255, $blue: 255, $purple: 255)")
flunk("Expected exception") flunk("Expected exception")
rescue Sass::SyntaxError => e rescue Sass::SyntaxError => e
assert_equal("Function rgb doesn't have an argument named $purple", e.messag e) assert_equal("Function rgb doesn't have an argument named $purple", e.messag e)
end end
def test_keyword_args_with_positional_and_keyword_argument def test_keyword_args_with_positional_and_keyword_argument
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)