Index: LayoutTests/web-animations-api/player-finish-event.html |
diff --git a/LayoutTests/web-animations-api/player-finish-event.html b/LayoutTests/web-animations-api/player-finish-event.html |
index d8070838b4e780a0b6243e2e152ae9bda5cf951f..acb20712b89cad3a3294f9b5ec194f69691c5005 100644 |
--- a/LayoutTests/web-animations-api/player-finish-event.html |
+++ b/LayoutTests/web-animations-api/player-finish-event.html |
@@ -40,7 +40,9 @@ var playerTop, playerMiddle, playerBottom; |
function onFinishTop(event) { |
validateFinishEvent(playerTop, event); |
- testRunner.notifyDone(); |
+ if (window.testRunner) { |
+ testRunner.notifyDone(); |
+ } |
} |
function onFinishMiddle(event) { |