// TestAnimationIsAnimated checks that IsAnimated returns true for an animated GIF.
TestAnimationIsAnimated checks that IsAnimated returns true for an animated GIF.
// TestAnimationIsAnimated checks that IsAnimated returns true for an animated GIF .
func TestAnimationIsAnimated(t *testing.T) {
	f, err := os.Open(getResource("spinning-2x2.gif"))
	g, err := gif.DecodeAll(f)
	if err != nil {
		panic(err)
	}
	if !IsAnimated(g) {
		t.Fatal(`IsAnimated = false, want true`)
	}
}
func TestAnimationIsAnimated ( t * testing . T ) { f , err := os . Open ( getResource ( " " ) ) g , err := gif . DecodeAll ( f ) if err != nil { panic ( err ) } if ! IsAnimated ( g ) { t . Fatal ( `IsAnimated = false, want true` ) } }
TestAnimationIsAnimated checks that IsAnimated returns true for an animated GIF.
TestAnimationIsAnimated checks that IsAnimated returns true for an animated GIF .