Index: LayoutTests/fast/history/visited-link-hover-background-color.html |
diff --git a/LayoutTests/fast/history/visited-link-hover-background-color.html b/LayoutTests/fast/history/visited-link-hover-background-color.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93310769a761ae2b94e424be7f28aeccc2328dc1 |
--- /dev/null |
+++ b/LayoutTests/fast/history/visited-link-hover-background-color.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script> |
+if (window.testRunner) { |
+ testRunner.keepWebHistory(); |
Xianzhu
2015/02/12 00:48:32
What's this for?
|
+ testRunner.waitUntilDone(); |
+} |
+</script> |
+<style> |
+a { background-color: red; text-decoration: none; color: initial } |
+a:hover:visited { background-color: green } |
+</style> |
+<a id="anchor" href="">Should have a green background when hovered</a> |
+<script> |
+if (window.testRunner) { |
+ testRunner.displayAsyncThen(function(){ |
+ if (window.eventSender); |
+ eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1); |
+ window.testRunner.notifyDone(); |
+ }); |
+} |
+</script> |