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

Unified Diff: third_party/WebKit/LayoutTests/paint/selection/drag-caret.html

Issue 2741853009: Fix wrong display item type for drag caret (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/selection/drag-caret.html
diff --git a/third_party/WebKit/LayoutTests/paint/selection/drag-caret.html b/third_party/WebKit/LayoutTests/paint/selection/drag-caret.html
new file mode 100644
index 0000000000000000000000000000000000000000..b076b0211396c09bd8ae03877ea64577a3f73952
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/selection/drag-caret.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+Passes if no crash.
+<input id="fileinput" type="file">
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+if (window.testRunner && window.eventSender) {
+ internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true;
+ document.designMode="on";
+ async_test(t => {
+ runAfterLayoutAndPaint(t.step_func_done(() => {
+ eventSender.beginDragWithFiles(['testpath1/testfile1.txt']);
+ var centerX = fileinput.offsetLeft + fileinput.offsetWidth / 2;
+ var centerY = fileinput.offsetTop + fileinput.offsetHeight / 2;
+ eventSender.mouseMoveTo(centerX, centerY);
+ eventSender.mouseUp();
+ }));
+ });
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698