[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / css-generated-content / positioned-background-hit-test-crash.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3    <head>
4        <title></title>
5        <style type="text/css">
6            h1
7            {
8                /* required for crash */
9                position: relative;
10            }
11            
12            h1:before
13            {
14                /* required for crash */
15                content: "";
16                position: absolute;
17                
18                /* Width and height so we can drag over it, values not important */
19                height: 200px;
20                width: 200px;
21                
22                /* border so we can see it */
23                border: 1px solid red;
24            }       
25         </style>
26         <script type="text/javascript">
27             if (window.layoutTestController)
28                 layoutTestController.dumpAsText();
29
30             function finishTest()
31             {
32                 eventSender.mouseUp();
33                 getSelection().removeAllRanges();
34                 layoutTestController.notifyDone();
35             }
36
37             function test()
38             {
39                 if (!window.layoutTestController)
40                     return;
41                 layoutTestController.waitUntilDone();
42                 eventSender.dragMode = false;
43                 eventSender.mouseMoveTo(1, 1);
44                 eventSender.mouseDown();
45                 // Start autoscroll.
46                 eventSender.mouseMoveTo(2, 2);
47                 // Move into position.
48                 eventSender.mouseMoveTo(50, 50);
49                 // Wait for the autoscroll timer to fire.
50                 setTimeout(finishTest, 200);
51             }
52         </script>
53    </head>
54    <body onload="test()">
55        <h1 id="heading">No crash means PASS</h1>
56    </body>
57 </html>