[Web Animations] Tests using the new animation engine may crash under WebCore::FrameV...
[WebKit-https.git] / LayoutTests / animations / animation-hit-test-transform.html
index 49f50e7..7807bc7 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>
      
         function doTest()
         {
-            if (window.testRunner) {
-                var target = document.getElementById("target");
-                if (!internals.pauseAnimationAtTimeOnElement("anim", 2.0, target)) {
-                    document.getElementById('result').innerHTML = "FAIL: Failed to pause animation"
-                    testRunner.notifyDone();
-                    return;
-                }
-        
-                checkResults();
+            var target = document.getElementById("target");
+            if (!pauseAnimationAtTimeOnElement("anim", 2.0, target)) {
+                document.getElementById('result').innerHTML = "FAIL: Failed to pause animation"
                 testRunner.notifyDone();
+                return;
             }
-            else {
-                window.setTimeout("checkResults()", 2000);
-            }
+    
+            checkResults();
+            testRunner.notifyDone();
         }
     
         function startTest()