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

Unified Diff: LayoutTests/web-animations-api/player-cancel-finishes.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-cancel-finishes.html
diff --git a/LayoutTests/web-animations-api/player-cancel-finishes.html b/LayoutTests/web-animations-api/player-cancel-finishes.html
index cc2b6d6303547b6853b217e50cee9b64ec68291f..2d469566ea091535ce186c49670a3d169df66a97 100644
--- a/LayoutTests/web-animations-api/player-cancel-finishes.html
+++ b/LayoutTests/web-animations-api/player-cancel-finishes.html
@@ -50,7 +50,9 @@ function onFinishMiddle(event) {
function onFinishBottom(event) {
validateFinishEvent(playerBottom, event);
- testRunner.notifyDone();
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
}
function animate() {
« no previous file with comments | « LayoutTests/web-animations-api/font-builder-crash.html ('k') | LayoutTests/web-animations-api/player-finish-event.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698