Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / non-fast-region / wheel-event-plugin.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <style>
6         .box {
7             height: 100px;
8             width: 100px;
9             margin: 10px 20px;
10             background-color: blue;
11             box-shadow: 0 0 10px black;
12         }
13         
14         embed {
15             margin: 20px;
16         }
17         
18     </style>
19     <script src="resources/wheel-handler-region-helper.js"></script>
20     <script>
21         if (window.testRunner)
22             testRunner.waitUntilDone();
23
24         if (window.internals) {
25             internals.setTopContentInset(60);
26             internals.setHeaderHeight(23);
27         }
28
29         function doTest()
30         {
31             if (window.internals)
32                 internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
33
34             // Scroll to test the mapping from document to view coords.
35             document.body.scrollTop = 197;
36             dumpRegion();
37             if (window.testRunner)
38                 testRunner.notifyDone();
39         }
40
41         window.addEventListener('load', doTest);
42     </script>
43 </head>
44 <body>
45
46 <p>Wheel event rect for plug-in:</p>
47 <embed id="plugin" type="application/x-webkit-test-netscape" drawingmodel="coreanimation"></embed>
48 <pre id="output"></pre>
49
50 </body>
51 </html>