Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / non-fast-region / compute-region-inside-delete-renderer-crash.html
1 <html>
2 <head>
3     <style>
4         .scroller {
5             height: 10px;
6             width: 10px;
7             overflow: scroll;
8             border: 1px solid black;
9         }
10     </style>
11     <script>
12         if (window.testRunner) {
13             testRunner.dumpAsText();
14             testRunner.waitUntilDone();
15         }
16
17         function doTest()
18         {
19             setTimeout(function() {
20                 var scroller = document.getElementById('scoller');
21                 var newNode = document.createElement('div');
22                 var container = document.getElementById('container');
23                 container.insertBefore(newNode, scroller);
24                 scroller.parentNode.removeChild(scroller);
25
26                 if (window.testRunner)
27                     testRunner.notifyDone();
28             }, 0);
29         }
30         
31         window.addEventListener('load', doTest, false);
32     </script>
33 </head>
34 <body>
35 <p>Test passes if it does not crash.</p>
36 <div><div id="container"><div id="scoller" class="scroller">foo</div></div></div>
37 <script>
38     document.getElementById("scoller").addEventListener("mousewheel", function() { }, false);
39 </script>
40 </body>
41 </html>