Index: LayoutTests/fast/history/visited-link-hover.html |
diff --git a/LayoutTests/fast/history/visited-link-hover.html b/LayoutTests/fast/history/visited-link-hover.html |
index 52063dadad76c47d500946bd5fb84976eb7793fc..34535d6c63f0f86d37d55bae8f420dd2886d29b6 100644 |
--- a/LayoutTests/fast/history/visited-link-hover.html |
+++ b/LayoutTests/fast/history/visited-link-hover.html |
@@ -14,9 +14,11 @@ a, a:hover { color: green; text-decoration: none } |
<a id="anchor" href="">Should be green when hovered</a> |
</div> |
<script> |
-testRunner.displayAsyncThen(function(){ |
- if (window.eventSender); |
- eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1); |
- window.testRunner.notifyDone(); |
-}); |
+if (window.testRunner) { |
+ testRunner.displayAsyncThen(function(){ |
+ if (window.eventSender); |
+ eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1); |
+ window.testRunner.notifyDone(); |
+ }); |
+} |
</script> |