Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / regions / br-content-node-crash.xhtml
1 <html xmlns="http://www.w3.org/1999/xhtml">
2     <!-- This test needs to be xhtml so that the br element is an accepted child of frameset element -->
3     <div>Test that moving a br element to a named flow does not crash when the br element should not have a renderer created.</div>
4     <div>To manually test, move the mouse to the upper left corner of the document and try to make a selection to the bottom of the document. It should not crash.</div>
5     <frameset>
6         <br style="-webkit-flow-into: contents"></br>
7     </frameset>
8     <script>
9         <![CDATA[
10             if (window.testRunner)
11                 window.testRunner.dumpAsText();
12
13             function keyDownMouseClick(x2, y2) {
14                 if (window.eventSender) {
15                     eventSender.mouseDown();
16                     eventSender.mouseMoveTo(x2, y2);
17                     eventSender.mouseUp();
18                 }
19             }
20
21             document.addEventListener("DOMContentLoaded", keyDownMouseClick(100, 500), false);
22         ]]>
23     </script>
24 </html>