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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/inline-outline-repaint.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/inline-outline-repaint.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/inline-outline-repaint.html b/third_party/WebKit/LayoutTests/paint/invalidation/inline-outline-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..98e50dec98e76f1b109ee9e52a549f7877ef16eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/inline-outline-repaint.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http:/html4/strict.dtd">
+<html lang="en">
+<head>
+<script src="../../editing/editing.js"></script>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+ function repaintTest()
+ {
+ var elem = document.getElementById("test");
+ var selection = window.getSelection();
+ selection.collapse(elem, 1);
+ for (i = 0; i < 9; i++)
+ document.execCommand("Delete");
+ }
+</script>
+</head>
+<body onload="runRepaintAndPixelTest();">
+<p><b>BUG ID:</b> <a href="https://bugs.webkit.org/show_bug.cgi?id=8337">Bugzilla bug 8337</a> Incomplete repaint of inlines&rsquo; outline during editing</p>
+
+<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
+The words &ldquo;sit amet&rdquo; will be deleted, and the blue outline will shrink to
+surround only the remaining text, without leaving behind any trails or other artifacts.
+</p>
+
+<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
+As the words &ldquo;sit amet&rdquo; will be deleted, the blue outline will leave
+trails behind as it shrinks to fit the remaining text.
+</p>
+
+<div contenteditable style="width: 100px; outline: none;">
+<span id="test" style="outline: blue solid;">Lorem ipsum dolor sit amet&nbsp;</span>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698