[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / table / crash-splitColumn-2.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .c7 { display: table-row-group; }
6 .c7:nth-last-of-type(-n+6) { float: none; }
7 .c21:nth-child(2n) { position: static; float: left; }
8 .c26 { border-style: ridge; content: counter(section);</style>
9 <script>
10 if (window.layoutTestController) {
11     layoutTestController.dumpAsText();
12     layoutTestController.waitUntilDone();
13 }
14
15 function crash()
16 {
17     var img = document.createElement('img');
18     img.appendChild(select);
19     if (window.layoutTestController)
20         layoutTestController.notifyDone();
21 }
22
23 function insertNodes() {
24     document.documentElement.appendChild(document.createElement('a'));
25     document.documentElement.appendChild(document.createElement('dfn'));
26     document.documentElement.appendChild(document.createElement('keygen'));
27     var iframe = document.createElement('iframe');
28     iframe.setAttribute('src', 'dne.html');
29     document.documentElement.appendChild(iframe);
30     document.documentElement.appendChild(document.createElement('rp'));
31     document.documentElement.appendChild(document.createElement('ul'));
32     document.documentElement.appendChild(document.createElement('option'));
33     document.documentElement.appendChild(document.createElement('label'));
34     document.documentElement.appendChild(document.createElement('table'));
35     document.documentElement.appendChild(document.createElement('mark'));
36     document.documentElement.appendChild(document.createElement('bdo'));
37     document.documentElement.appendChild(document.createElement('colgroup'));
38     document.documentElement.appendChild(document.createElement('strong'));
39
40     select = document.createElement('select');
41     document.documentElement.appendChild(select);
42
43     var sup = document.createElement('sup');
44     sup.setAttribute('class', 'c7');
45     document.documentElement.appendChild(sup);
46     var td = document.createElement('td');
47     td.setAttribute('class', 'c21');
48     document.documentElement.appendChild(td);
49
50     var th = document.createElement('th');
51     th.setAttribute('colspan', '2');
52     th.setAttribute('class', 'c26');
53     sup.appendChild(th);
54
55     setTimeout(crash, 0);
56 }
57 window.addEventListener("load", insertNodes, false);
58 </script>
59 </head>
60 <body>
61 <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=70171">70171</a>: Crash in RenderTableSection::splitColumn</p>
62 <p> This test PASSES if it does not CRASH or ASSERT.</p>
63 </body>
64 </html>