test/integration_test.rb in sprite-factory-1.4.2 vs test/integration_test.rb in sprite-factory-1.5.0
- old
+ new
@@ -22,19 +22,27 @@
end
def test_generate_packed_regular_sprite
integration_test(REGULAR_PATH, :output => output_path('regular.packed'),
:selector => 'img.packed_',
- :layout => :packed)
+ :layout => :packed,
+ :padding => 10,
+ :margin => 10)
end
def test_generate_regular_sprite_with_padding
integration_test(REGULAR_PATH, :output => output_path('regular.padded'),
:selector => 'img.padded_',
:padding => 10)
end
+ def test_generate_regular_sprite_with_margin
+ integration_test(REGULAR_PATH, :output => output_path('regular.margin'),
+ :selector => 'img.margin_',
+ :margin => 10)
+ end
+
def test_generate_regular_sprite_with_fixed_size
integration_test(REGULAR_PATH, :output => output_path('regular.fixed'),
:selector => 'img.fixed_',
:width => 100,
:height => 100)
@@ -71,19 +79,27 @@
end
def test_generate_packed_irregular_sprite
integration_test(IRREGULAR_PATH, :output => output_path('irregular.packed'),
:selector => 'img.packed_',
- :layout => :packed)
+ :layout => :packed,
+ :padding => 10,
+ :margin => 10)
end
def test_generate_irregular_sprite_with_padding
integration_test(IRREGULAR_PATH, :output => output_path('irregular.padded'),
:selector => 'img.padded_',
:padding => 10)
end
+ def test_generate_irregular_sprite_with_margin
+ integration_test(IRREGULAR_PATH, :output => output_path('irregular.margin'),
+ :selector => 'img.margin_',
+ :margin => 10)
+ end
+
def test_generate_irregular_sprite_with_fixed_size
integration_test(IRREGULAR_PATH, :output => output_path('irregular.fixed'),
:selector => 'img.fixed_',
:width => 100,
:height => 100)
@@ -114,9 +130,15 @@
#----------------------------------------------------------------------------
def test_generate_sprite_using_images_in_subfolders
integration_test(SUBFOLDERS_PATH)
+ end
+
+ #----------------------------------------------------------------------------
+
+ def test_generate_sprites_with_hover_pseudo_class
+ integration_test(HOVER_PATH, :selector => 'div.hover ')
end
#----------------------------------------------------------------------------
def test_generate_sprite_with_nocss