Unpainted area while scrolling in Reader is white
[WebKit-https.git] / LayoutTests / tiled-drawing / simple-document-with-dynamic-background-color.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <script>
6         if (window.testRunner) {
7             testRunner.dumpAsText();
8             testRunner.waitUntilDone();
9         }
10
11         function doTest()
12         {
13             if (!window.internals)
14                 return;
15
16             document.body.style.backgroundColor = "black";
17
18             // The RenderView's background color should be black.
19             document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_TILE_CACHES) + "\n\n";
20
21             document.body.style.backgroundColor = "red";
22
23             // The RenderView's background color should be red.
24             document.getElementById('layers').innerText += internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_TILE_CACHES);
25
26             testRunner.notifyDone();
27         }
28         window.addEventListener('load', doTest, false);
29     </script>
30 </head>
31
32 <body>
33 <pre id="layers">Layer tree goes here</p>
34 </body>
35 </html>