Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / remove-child-onscroll.html
blob4fd981b176b9423ea2adea4942085a24eea2b4c7
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function dispatchScrollEvents()
11 if (window.eventSender && window.testRunner) {
12 testRunner.waitUntilDone();
13 var scrollCount = 0;
14 document.getElementById('dv').addEventListener(
15 'scroll',
16 function(event) {
17 this.removeChild(this.firstChild);
18 scrollCount++;
19 if (scrollCount == 1)
20 eventSender.mouseScrollBy(-1, -1);
21 else
22 testRunner.notifyDone();
24 false);
26 eventSender.mouseMoveTo(100, 100);
27 eventSender.mouseScrollBy(0, -1);
30 </script>
31 </head>
32 <body onload="setTimeout('dispatchScrollEvents();', 1);">
33 This test verifies that children can be removed by their parent element's onscroll event handler. The test succeeds if this is the only text remaining after the two scroll events are dispatched. The test fails if the inner div remains in the output or if WebKit crashes.<br><br>
34 <div id="dv" style="overflow: auto; width: 200px; height: 200px; whitespace: nowrap;">
35 <div style="width:300px; height:300px">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
36 </div>
37 </div>
38 </body>
39 </html>