Index: LayoutTests/paint/invalidation/text-decoration-invalidation.html |
diff --git a/LayoutTests/paint/invalidation/text-decoration-invalidation.html b/LayoutTests/paint/invalidation/text-decoration-invalidation.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9d6233311d4983bece4b028dd81ae223eb267f44 |
--- /dev/null |
+++ b/LayoutTests/paint/invalidation/text-decoration-invalidation.html |
@@ -0,0 +1,36 @@ |
+<!DOCTYPE html> |
+<style> |
+ div { |
+ display: block; |
+ width: 400px; |
+ height: 100px; |
+ color: blue; |
+ } |
+ #underlineHover:hover { |
+ text-decoration: underline; |
+ } |
+ #underlineNoHover:hover { |
+ text-decoration: underline; |
+ } |
+</style> |
+ |
+<div id="underlineHover"> |
+<span>When</span> <span>hovered, </span><span>there</span> <span>should</span> <span> be </span> <span>no</span> <span>gaps</span> <span>in</span> <span>the</span> <span>underline.</span> |
+</div> |
+ |
+<div id="underlineNoHover"> |
+<span>When</span> <span>not hovered, </span><span>there</span> <span>should</span> <span> be </span> <span>no</span> <span>underlines.</span> |
+</div> |
+ |
+<script> |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ if (window.eventSender); |
+ eventSender.mouseMoveTo(underlineNoHover.offsetLeft + 10, underlineNoHover.offsetTop + 10); |
+ testRunner.layoutAndPaintAsyncThen(function(){ |
+ if (window.eventSender); |
+ eventSender.mouseMoveTo(underlineHover.offsetLeft + 10, underlineHover.offsetTop + 10); |
+ testRunner.notifyDone(); |
+ }); |
+} |
+</script> |