| 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>
|
|
|