Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / click-near-anonymous-table.html
blob9a92c45d04263d5a26106362b8c7dfbf9d690d7d
1 <html>
2 <head>
3 <title></title>
4 <script type="text/javascript">
5 function test()
7 if (!window.testRunner)
8 return;
9 var target = document.getElementById("target");
11 for (i = 0; i < target.children.length; i++) {
12 var div = target.children[i];
13 var clickX = div.offsetLeft + div.offsetWidth + 5;
14 var clickY = div.offsetTop + 5;
15 eventSender.mouseMoveTo(clickX, clickY);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
18 eventSender.leapForward(1000); // we're not multi-clicking
21 </script>
22 </head>
23 <body onload="test()">
24 <p>
25 This is a regression test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=9879">http://bugzilla.opendarwin.org/show_bug.cgi?id=9879</a>
26 REGRESSION: Repro crash when clicking to the side of an anonymous table</i>.
27 </p>
28 <p>
29 If the browser does not crash as you click to the right of each of the lines below, it passes the test.
30 </p>
31 <hr>
32 <div id="target">
33 <div style="display:table-row;">
34 Click to the right of this text
35 </div>
37 <div style="display:table-cell;">
38 Click to the right of this text
39 </div>
41 <div style="display:table-caption;">
42 Click to the right of this text
43 </div>
45 <div style="display:table-row-group;">
46 Click to the right of this text
47 </div>
48 </div>
49 </body>
50 </html>