[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / html / pending-stylesheet-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head id="h">
4 </head>
5 <body>
6 <script>
7 if (window.layoutTestController)
8         window.layoutTestController.dumpAsText();
9
10 var link = document.createElement('link');
11 link.setAttribute('type', 'text/css');
12 link.setAttribute('rel', 'stylesheet');
13 link.setAttribute('href', 'really-does-not-exist.css');
14 document.getElementById('h').appendChild(link);
15 link.parentNode.removeChild(link);
16 link = null;
17 </script>
18 <script>
19 function gc() {
20     if (window.GCController)
21         GCController.collect();
22     else {
23         // Allocate a sufficient number of objects to force a GC.
24         for (var i = 0; i < 10000; i++)
25             new Object;
26     }
27 }
28
29 gc();
30 </script>
31 <p>This test passes if it doesn't crash</p>
32 </body>
33 </html>