add spec for AnimFrame