Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / PerformanceTests / Layout / RegionsShapes.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/runner.js"></script>
4 <script>
5 var test = PerfTestRunner.loadFile("./Shapes/resources/RegionsShapesContent.html");
6
7 PerfTestRunner.measureTime({run: function() {
8     var iframe = document.createElement("iframe");
9
10     iframe.style.height = '600px';
11     document.body.appendChild(iframe);
12     iframe.contentDocument.open();
13     iframe.contentDocument.write(test);
14     iframe.contentDocument.close();
15     iframe.style.width = '800px';
16     iframe.offsetTop;
17     document.body.removeChild(iframe);
18
19     var iframe2 = iframe.cloneNode();
20     iframe2.style.height = '600px';
21     document.body.appendChild(iframe2);
22     iframe2.contentDocument.open();
23     iframe2.contentDocument.write(test);
24     iframe2.contentDocument.close();
25     iframe2.style.width = '600px';
26     iframe2.offsetTop;
27     document.body.removeChild(iframe2);
28
29     var iframe3 = iframe.cloneNode();
30     iframe3.style.height = '600px';
31     document.body.appendChild(iframe3);
32     iframe3.contentDocument.open();
33     iframe3.contentDocument.write(test);
34     iframe3.contentDocument.close();
35     iframe3.style.width = '400px';
36     iframe3.offsetTop;
37     document.body.removeChild(iframe3);
38
39 }});
40 </script>
41 </body>