OLD | NEW |
(Empty) | |
| 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")
; |
| 8 |
| 9 PerfTestRunner.measureTime({run: function() { |
| 10 var iframe = document.createElement("iframe"); |
| 11 |
| 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 iframe.offsetTop; |
| 19 document.body.removeChild(iframe); |
| 20 |
| 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 iframe2.offsetTop; |
| 29 document.body.removeChild(iframe2); |
| 30 |
| 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 iframe3.offsetTop; |
| 39 document.body.removeChild(iframe3); |
| 40 |
| 41 }}); |
| 42 </script> |
| 43 </body> |
OLD | NEW |