-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- webkit-test-runner [ enableCSSAnimationsAndCSSTransitionsBackedByWebAnimations=true ] -->
<html lang="en">
<head>
<script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
- const expectedValues = [
+ runAnimationTest([
// [animation-name, time, element-id, property, expected-value, tolerance]
["anim1", 0.4, "box1", "left", 20, 2],
["anim1", 1.0, "box1", "left", 20, 2],
["anim3", 1.6, "box3", "left", 15, 2],
["anim4", 0.4, "box4", "left", 20, 2],
["anim4", 1.0, "box4", "left", 25, 2],
- ["anim4", 1.6, "box4", "left", 15, 2]
- ];
-
- runAnimationTest(expectedValues, function() {
- if (window.testRunner) {
- var box5Element = document.getElementById('box5');
- if (internals.pauseAnimationAtTimeOnElement("anim5", 0.1, box5Element))
- result += "FAIL - box5 animation was running<br>";
- else
- result += "PASS - box5 animation was not running<br>";
- }
- });
+ ["anim4", 1.6, "box4", "left", 15, 2],
+ ["anim5", 0.4, "box5", "left", 10, 0],
+ ["anim5", 1.0, "box5", "left", 10, 0],
+ ["anim5", 1.6, "box5", "left", 10, 0]
+ ]);
</script>
</head>