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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/select-delete-in-event-handler-expected.txt

Issue 2646653002: Fix crash in mouse event handling with a dirty layout tree. (Closed)
Patch Set: none Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 <HEAD></HEAD><BODY>Passes if it does not crash. <SCRIPT> function selectionChang eHandler() { document.designMode = "on"; } document.addEventListener("selectionc hange", selectionChangeHandler, true); var focusInActive = false; function focus InHandler() { if (focusInActive) return; focusInActive = true; var oElement = ev ent.srcElement; oElement.innerHTML = 'a'; document.execCommand("SelectAll", fals e, false); } function cleanup() { while (true) { var oe = document.getElementsBy TagName("*"); if (oe.length <= 1) return; for (var i = 0; i < oe.length; i++) { var o = oe.item(i); if (!o.firstElementChild && o != document.documentElement) { var p = o.parentNode; p.replaceChild(document.createTextNode( "<" + o.tagName + ">" + o.textContent + "</" + o.tagName + ">"), o); } } } } window.onload = func tion() { cleanup(); document.addEventListener("DOMFocusIn", focusInHandler, fals e); setTimeout(function() { if (eventSender) { eventSender.mouseMoveTo(100, 100) ; eventSender.mouseDown(); setTimeout(function() { eventSender.mouseMoveTo(100, 101); eventSender.mouseUp(); if (testRunner) testRunner.notifyDone(); }, 0); } } , 0); }; if (testRunner) { testRunner.waitUntilDone(); testRunner.dumpAsText(); } </SCRIPT> </BODY>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698