1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Fix skip comments

This commit is contained in:
Takashi Kokubun 2015-11-13 22:26:53 +09:00
parent 2ee9426320
commit e2b9a20c62
3 changed files with 8 additions and 7 deletions

View file

@ -152,7 +152,8 @@ class EngineTest < Haml::TestCase
assert_equal("<p class='3'>foo</p>", render("%p{:class => 1+2} foo").chomp)
end
def test_class_attr_with_array; skip # array attribute
def test_class_attr_with_array
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
assert_equal("<p class='a b'>foo</p>\n", render("%p{:class => %w[a b]} foo")) # basic
assert_equal("<p class='a b css'>foo</p>\n", render("%p.css{:class => %w[a b]} foo")) # merge with css
assert_equal("<p class='b css'>foo</p>\n", render("%p.css{:class => %w[css b]} foo")) # merge uniquely
@ -209,7 +210,7 @@ HAML
end
def test_nil_should_render_empty_tag
skip '[INCOMPATIBILITY] Hamlit does not delete falsy non-boolean attributes for optimization'
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
assert_equal("<div class='no_attributes'></div>",
render(".no_attributes{:nil => nil}").chomp)
end
@ -323,7 +324,7 @@ HAML
end
def test_dynamic_attributes_with_empty_attr
skip '[INCOMPATIBILITY] Hamlit does not delete falsy non-boolean attributes for optimization'
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
assert_equal("<img alt='' src='/foo.png'>\n", render("%img{:width => nil, :src => '/foo.png', :alt => String.new}"))
end
@ -414,7 +415,7 @@ HAML
end
def test_boolean_attributes
skip '[INCOMPATIBILITY] Hamlit does not delete falsy non-boolean attributes for optimization'
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
assert_equal("<p bar baz='true' foo='bar'></p>\n",
render("%p{:foo => 'bar', :bar => true, :baz => 'true'}", :format => :html4))
assert_equal("<p bar='bar' baz='true' foo='bar'></p>\n",
@ -1184,7 +1185,7 @@ HAML
end
def test_nil_attrs
skip '[INCOMPATIBILITY] Hamlit does not delete falsy non-boolean attributes for optimization'
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
assert_equal("<p>nil</p>\n", render("%p{ :attr => nil } nil"))
assert_equal("<p>nil</p>\n", render("%p{ :attr => x } nil", :locals => {:x => nil}))
end

View file

@ -588,7 +588,7 @@ class PrettyTest < MiniTest::Test
end
def test_HTML_style_tag_with_an_atomic_attribute
skip '[INCOMPATIBILITY] Hamlit does not delete falsy non-boolean attributes for optimization'
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
haml = %q{%a(flag)}
html = %q{<a flag></a>}
locals = {}

View file

@ -588,7 +588,7 @@ class UglyTest < MiniTest::Test
end
def test_HTML_style_tag_with_an_atomic_attribute
skip '[INCOMPATIBILITY] Hamlit does not delete falsy non-boolean attributes for optimization'
skip '[INCOMPATIBILITY] Hamlit deletes only boolean attributes'
haml = %q{%a(flag)}
html = %q{<a flag></a>}
locals = {}