| <!DOCTYPE html> | |
| <body> | |
| <script src="../../resources/runner.js"></script> | |
| <script> | |
| var test = PerfTestRunner.loadFile("./resources/multicol-content-nested.html"); | |
| var iframeCount = 2; | |
| function processIframe() { | |
| var iframe = document.createElement("iframe"); | |
| iframe.style.height = '600px'; | |
| iframe.style.width = '800px'; | |
| document.body.appendChild(iframe); | |
| iframe.contentDocument.open(); | |
| iframe.contentDocument.write(test); | |
| iframe.contentDocument.close(); | |
| iframe.contentDocument.body.offsetTop; | |
| document.body.removeChild(iframe); | |
| } | |
| PerfTestRunner.measureTime({run: function() { | |
| for (var i = 0; i < iframeCount; i++) { | |
| processIframe(); | |
| } | |
| }}); | |
| </script> | |
| </body> |