Index: LayoutTests/web-animations-api/player-finish-repeats.html |
diff --git a/LayoutTests/web-animations-api/player-finish-repeats.html b/LayoutTests/web-animations-api/player-finish-repeats.html |
index ee9bd864ff36e42eb3be16a503043cc19f047474..85842a5eac3b0e100265cd940a883a08f03595c9 100644 |
--- a/LayoutTests/web-animations-api/player-finish-repeats.html |
+++ b/LayoutTests/web-animations-api/player-finish-repeats.html |
@@ -91,7 +91,9 @@ function onFinishBottom(event) { |
firstBottom = false; |
playerBottom.reverse(); |
} else { |
- testRunner.notifyDone(); |
+ if (window.testRunner) { |
+ testRunner.notifyDone(); |
+ } |
} |
} |