blob: 4ddf27dbc07794c22da5decfd3c57c80a747b9e2 [file] [log] [blame]
This test performs animations of the left property on five boxes over 2 seconds. Box 1 has all keyframes. Box 2 has a missing "from" keyframe. Box 3 has a missing "to" keyframe. Box 4 has both "from" and "to" keyframes missing, but other keyframes which should trigger the generation of "from" and "to". Box 5 has no keyframes, and should not animate. The test takes 3 snapshots each and expects each result to be within a specified range.
PASS - box5 animation was not running
PASS - "left" property for "box1" element at 0.4s saw something close to: 20
PASS - "left" property for "box1" element at 1s saw something close to: 20
PASS - "left" property for "box1" element at 1.6s saw something close to: 15
PASS - "left" property for "box2" element at 0.4s saw something close to: 20
PASS - "left" property for "box2" element at 1s saw something close to: 20
PASS - "left" property for "box2" element at 1.6s saw something close to: 15
PASS - "left" property for "box3" element at 0.4s saw something close to: 20
PASS - "left" property for "box3" element at 1s saw something close to: 20
PASS - "left" property for "box3" element at 1.6s saw something close to: 15
PASS - "left" property for "box4" element at 0.4s saw something close to: 20
PASS - "left" property for "box4" element at 1s saw something close to: 25
PASS - "left" property for "box4" element at 1.6s saw something close to: 15