[Web Animations] Tests using the new animation engine may crash under WebCore::FrameV...
[WebKit-https.git] / LayoutTests / animations / missing-from-to.html
index 4ab0900..28c1f6c 100644 (file)
@@ -1,5 +1,4 @@
-<!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>
@@ -71,7 +70,7 @@
   <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.layoutTestController) {
-          if (layoutTestController.pauseAnimationAtTimeOnElementWithId("anim5", 0.1, "box5"))
-              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>