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

Side by Side Diff: LayoutTests/fast/block/float/float-selection-delete-crash.html

Issue 131223003: Track intruding and overhanging floats (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <style>
2 * {
3 float: left;
4 }
5 *:after {
6 content: url();
7 display: block;
8 }
9 </style>
10 <script>
11 function domNodeRemovedFromDocumentHandler() {
12 document.removeEventListener("DOMNodeRemovedFromDocument", domNodeRemovedFromD ocumentHandler, true);
13 var selection = window.getSelection();
14 selection.deleteFromDocument();
15 var range = selection.getRangeAt(81 % selection.rangeCount);
16 var elements = document.getElementsByTagName("*");
17 range.surroundContents(elements[1]);
18 }
19 document.addEventListener("DOMNodeRemovedFromDocument", domNodeRemovedFromDocume ntHandler, true);
20 window.onload = function() {
21 var selection = window.getSelection();
22 var body = document.getElementsByTagName("body")[0];
23 selection.collapse(body, 2);
24 selection.deleteFromDocument();
25 };
26
27 if (window.testRunner)
28 testRunner.dumpAsText();
29 </script>
30 PASS: This passes if it does not crash with an ASAN enabled build.
31 <table>
32 <caption>
33 <col>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/block/float/float-selection-delete-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698