Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Layout / Shapes / MultipleShapes.html
blob91f7711772c562c3b6465584e32d9a60e73ee035
1 <!DOCTYPE html>
2 <body>
3 <script src="../../resources/runner.js"></script>
4 <script>
5 var test800 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth800.html");
6 var test600 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth600.html");
7 var test400 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth400.html");
9 PerfTestRunner.measureTime({run: function() {
10 var iframe = document.createElement("iframe");
12 iframe.style.height = '600px';
13 document.body.appendChild(iframe);
14 iframe.contentDocument.open();
15 iframe.contentDocument.write(test800);
16 iframe.contentDocument.close();
17 iframe.style.width = '800px';
18 PerfTestRunner.forceLayoutOrFullFrame();
19 document.body.removeChild(iframe);
21 var iframe2 = iframe.cloneNode();
22 iframe2.style.height = '600px';
23 document.body.appendChild(iframe2);
24 iframe2.contentDocument.open();
25 iframe2.contentDocument.write(test600);
26 iframe2.contentDocument.close();
27 iframe2.style.width = '600px';
28 PerfTestRunner.forceLayoutOrFullFrame();
29 document.body.removeChild(iframe2);
31 var iframe3 = iframe.cloneNode();
32 iframe3.style.height = '600px';
33 document.body.appendChild(iframe3);
34 iframe3.contentDocument.open();
35 iframe3.contentDocument.write(test400);
36 iframe3.contentDocument.close();
37 iframe3.style.width = '400px';
38 PerfTestRunner.forceLayoutOrFullFrame();
39 document.body.removeChild(iframe3);
41 }});
42 </script>
43 </body>