[macOS / iOS Debug] Layout Test imported/w3c/web-platform-tests/webrtc/RTCPeerConnect...
[WebKit-https.git] / LayoutTests / scrollbars / scrollbar-owning-renderer-crash.html
1 <html id="html1">
2 <head id="head1">
3 <style>
4 ::-webkit-scrollbar { height: 50000; }
5  </style>
6 <script>
7 if (window.testRunner) {
8     testRunner.dumpAsText();
9     testRunner.waitUntilDone();
10 }
11
12 function runTest() {
13     child = document.getElementById('head1');
14     child.parentNode.removeChild(child);
15     document.body.offsetTop;
16     child = document.getElementById('html1');
17     child.parentNode.removeChild(child);
18     document.open();
19     document.write("WebKit bug 80610 - Crash due to owning renderer not removed from custom scrollbar. <br />");
20     document.write("PASS. WebKit didn't crash.");
21     document.close();
22 }
23
24 function finish() {
25     if (window.eventSender)
26         eventSender.mouseMoveTo(100, 100);
27     if (window.testRunner)
28         testRunner.notifyDone();
29 }
30
31 setTimeout("if (window.eventSender) eventSender.mouseMoveTo(0, 0);", 0);
32 setTimeout("runTest();", 10);
33 setTimeout("finish();", 11);
34 </script>
35 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
36 </head>
37 </html>