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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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: third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html b/third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html
new file mode 100644
index 0000000000000000000000000000000000000000..d0c2dc511a3d0027d365ddc6890c6bcd6b051011
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http:/html4/strict.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Selection on replaced element</title>
+ <style type="text/css">
+ img {
+ position: relative;
+ top: 80px;
+ }
+ img.moved {
+ top: 0px;
+ }
+ </style>
+ <script src="resources/text-based-repaint.js" type="text/javascript" charset="utf-8"></script>
+ <script type="text/javascript" charset="utf-8">
+ function loaded()
+ {
+ var selection = window.getSelection();
+ var image = document.getElementById('test');
+ selection.setBaseAndExtent(image, 0, image, 1);
+ runRepaintAndPixelTest();
+ }
+ function repaintTest()
+ {
+ document.getElementById('test').className = 'moved';
+ }
+ </script>
+</head>
+<body onload="loaded()">
+ <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22472">https://bugs.webkit.org/show_bug.cgi?id=22472</a>
+ <i>Selection is not completely erased when a replaced element moves</i>
+ </p>
+ <img id="test" src="resources/apple.jpg" width="214" height="232" alt="Apple">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698