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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/caret-contenteditable-content-after.html

Issue 2565103002: Fix mismatched nullptr check for caret paint invalidation. (Closed)
Patch Set: Sync to head and add test baselines. Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/caret-contenteditable-content-after-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/caret-contenteditable-content-after.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/caret-contenteditable-content-after.html b/third_party/WebKit/LayoutTests/paint/invalidation/caret-contenteditable-content-after.html
new file mode 100644
index 0000000000000000000000000000000000000000..cfe97b1b62d4401a5432f8353ce70307dd039551
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/caret-contenteditable-content-after.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ editor.focus();
+ if (!window.eventSender)
+ return;
+ eventSender.keyDown('a');
+ eventSender.keyDown('b');
+ eventSender.keyDown('c');
+}
+onload = runRepaintAndPixelTest;
+</script>
+<style>
+#editor:after {
+ content:"x";
+}
+</style>
+Test passes if caret is visible after the 'c' but before the 'x'.<br>
+To reproduce manually, type 'abc'.
+<div id="editor" contenteditable="true"></div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/caret-contenteditable-content-after-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698