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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/mouse/drag_selection_update_crash.html

Issue 1793093006: [Editing][Stability] Recanonicalize m_originalbase in FrameSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 8 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/FrameSelection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 &#x5D0;&#x5D1;&#x5D2; 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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698