1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Test simple animation</title>
8 <style type="text/css" media="screen">
15 background-color: blue;
16 -webkit-animation-duration: 1s;
17 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: "anim";
20 @-webkit-keyframes "anim" {
25 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
26 <script type="text/javascript" charset="utf-8">
28 const expectedValues = [
29 // [animation-name, time, element-id, property, expected-value, tolerance]
30 ["anim", 0.25, "box", "left", 125, 5],
31 ["anim", 0.50, "box", "left", 150, 5],
32 ["anim", 0.75, "box", "left", 175, 5],
35 runAnimationTest(expectedValues);
40 This test performs an animation of the left property. It animates over 1 second.
41 It takes 3 snapshots and expects each result to be within a specified range.