Mark http/wpt/resource-timing/rt-resource-errors.html as flaky on Windows.
[WebKit-https.git] / LayoutTests / displaylists / canvas-display-list.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <script>
6         function drawCanvas()
7         {
8             var ctx = document.getElementById('canvas').getContext('2d');
9             ctx.fillStyle = "rgb(200,0,0)";
10             ctx.fillRect (10, 10, 55, 50);
11
12             ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
13             ctx.fillRect (30, 30, 55, 50);
14         }
15
16         if (window.testRunner)
17             testRunner.dumpAsText();
18
19         var canvas;
20         function doTest()
21         {
22             document.body.offsetWidth;
23             canvas = document.getElementById('canvas');
24             if (window.internals) {
25                 internals.setElementUsesDisplayListDrawing(canvas, true);
26                 internals.setElementTracksDisplayListReplay(canvas, true);
27             }
28             
29             drawCanvas();
30
31             if (window.testRunner)
32                 testRunner.displayAndTrackRepaints();
33
34             if (window.internals)
35                 document.getElementById('output').textContent = internals.replayDisplayListForElement(canvas);
36         }
37         window.addEventListener('load', doTest, false);
38     </script>
39 </head>
40 <body>
41 <canvas id="canvas" width="300" height="200"></canvas>
42 <pre id="output"></pre>
43 </body>
44 </html>