Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: LayoutTests/web-animations-api/player-finish-sample-only.html

Issue 436883002: Web Animations: guard testRunner usages. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix errata Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/web-animations-api/player-finish-sample-only.html
diff --git a/LayoutTests/web-animations-api/player-finish-sample-only.html b/LayoutTests/web-animations-api/player-finish-sample-only.html
index 56cbe337f12fde1d28a55cbff74642117f8afc7f..8afcbed162e636b5323069341895aca5b8ea0d8c 100644
--- a/LayoutTests/web-animations-api/player-finish-sample-only.html
+++ b/LayoutTests/web-animations-api/player-finish-sample-only.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) {
« no previous file with comments | « LayoutTests/web-animations-api/player-finish-repeats.html ('k') | LayoutTests/web-animations-api/resource-loading.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698