test/test_giflib.rb in giflib-0.2 vs test/test_giflib.rb in giflib-0.3

- old
+ new

@@ -32,13 +32,19 @@ image.setDelayTimeForFrame(0,2) assert(image.getDelayTimeForFrame(0) == 2, "Expected 2 but got "+image.getDelayTimeForFrame(0).to_s) assert(image.getSavedImageExtensionBlockCount(0) == 1, "Expected 1 but got "+image.getSavedImageExtensionBlockCount(0).to_s) end - def test_addFrame - image = loadImage './test/pizza/background/background.gif' - image.addFrame image - assert(image.getImageCount == 2, "ImageCount: "+image.getImageCount.to_s+" expected 2") + #def test_addFrame_self + # image = loadImage './test/pizza/background/background.gif' + # image.addFrame image + # assert(image.getImageCount == 2, "ImageCount: "+image.getImageCount.to_s+" expected 2") + #end + + def test_addFrame_notSelf + image1 = loadImage './test/pizza/background/background.gif' + image2 = loadImage './test/pizza/background/background.gif' + image1.addFrame image2 end def test_encode image = loadImage './test/pizza/background/background.gif' encoded = image.encode