Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html |
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html b/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..763483fc8f396a5d4693c8652646639d0ea73e38 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html |
| @@ -0,0 +1,30 @@ |
| +<!DOCTYPE html> |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| +<div style="direction: rtl;"> |
| +var __v_40 = 0; ++__v_40 {__v_40: "ab" + __v_40 + (__v_40 / 100000);.target { olor: #bbeeff; |
|
yosin_UTC9
2016/04/19 06:04:04
Can we replace this cryptic text by "foo" or simpl
yoichio
2016/04/19 08:47:19
This test depends on this strange text lined throu
|
| +<dl id="tests"></dl> |
| + <span id="target"> |
| + abcאבג |
|
yosin_UTC9
2016/04/19 06:04:04
nit: Could you use אבג to make v
yoichio
2016/04/19 08:47:19
Done.
|
| +</span></div> |
| + |
| +<script> |
| +test(function(){ |
| + eventSender.setPageZoomFactor(5); |
| + var y = target.offsetTop + target.offsetHeight / 2; |
| + var left = target.offsetLeft; |
| + var startX = left + (target.offsetWidth); |
| + eventSender.dragMode = false; |
| + eventSender.mouseMoveTo(startX, y); |
| + eventSender.mouseDown(); |
| + var xIncrement = -1; |
| + for (var x = startX; left <= x && x <= left + target.offsetWidth; x += xIncrement) { |
|
yosin_UTC9
2016/04/19 06:04:04
Just one |moveMoveTo()| should be enough.
yoichio
2016/04/19 08:47:19
Done.
|
| + eventSender.mouseMoveTo(x, y); |
|
yosin_UTC9
2016/04/19 06:04:04
nit: indent
yoichio
2016/04/19 08:47:19
Done.
|
| + } |
| + |
| + document.body.innerHTML = 'text'; |
|
yosin_UTC9
2016/04/19 06:04:04
I think we can have "<div id=log></div>", once we
yoichio
2016/04/19 08:47:19
Done.
|
| + var div = document.createElement('div'); |
| + div.id = 'log'; |
| + document.body.appendChild(div); |
| +}); |
| +</script> |