Index: third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html |
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html b/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html |
index ebf1c51e89345b4717f26adf19cfcd0e3fc7bab1..69ddecf182586ac73a49226bc4f285ffb0d2cba0 100644 |
--- a/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html |
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html |
@@ -30,12 +30,16 @@ var animation = target.animate([ |
iterations: Infinity, |
}); |
-testRunner.waitUntilDone(); |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
requestAnimationFrame(function() { |
requestAnimationFrame(function() { |
- var composited = internals.isCompositedAnimation(animation); |
- text.textContent = `Animation ${composited ? 'is' : 'is not'} running on the compositor.`; |
- testRunner.notifyDone(); |
+ if (window.internals) { |
+ var composited = internals.isCompositedAnimation(animation); |
+ text.textContent = `Animation ${composited ? 'is' : 'is not'} running on the compositor.`; |
+ } |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
}); |
}); |
</script> |