Index: LayoutTests/web-animations-api/resource-loading.html |
diff --git a/LayoutTests/web-animations-api/resource-loading.html b/LayoutTests/web-animations-api/resource-loading.html |
index d245f1e31875e5148303b465d2136438bcc5f335..39c7c311e8a7b4cc9b1f1b17989c315b60819dbf 100644 |
--- a/LayoutTests/web-animations-api/resource-loading.html |
+++ b/LayoutTests/web-animations-api/resource-loading.html |
@@ -17,6 +17,8 @@ if (window.testRunner) { |
testRunner.waitUntilDone(); |
} |
requestAnimationFrame(function() { |
- testRunner.notifyDone(); |
+ if (window.testRunner) { |
+ testRunner.notifyDone(); |
+ } |
}); |
</script> |