2010-05-19 08:22:02 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<body>
|
2012-01-19 23:38:29 +00:00
|
|
|
<script src="../resources/runner.js"></script>
|
2010-05-19 08:22:02 +00:00
|
|
|
<script>
|
2012-01-31 20:05:37 +00:00
|
|
|
var spec = PerfTestRunner.loadFile("resources/html5.html");
|
2010-05-19 08:22:02 +00:00
|
|
|
|
2012-09-28 00:26:14 +00:00
|
|
|
PerfTestRunner.measureTime({run: function() {
|
2010-05-19 08:22:02 +00:00
|
|
|
var iframe = document.createElement("iframe");
|
2011-10-03 20:09:25 +00:00
|
|
|
iframe.style.display = "none"; // Prevent creation of the rendering tree, so we only test HTML parsing.
|
2018-10-02 15:50:29 +00:00
|
|
|
iframe.sandbox = 'allow-same-origin'; // Prevent external script loads which could cause write() to return before completing the parse.
|
2010-12-31 10:01:49 +00:00
|
|
|
document.body.appendChild(iframe);
|
2010-05-25 12:55:17 +00:00
|
|
|
iframe.contentDocument.open();
|
2010-12-31 10:01:49 +00:00
|
|
|
iframe.contentDocument.write(spec);
|
2010-05-25 12:55:17 +00:00
|
|
|
iframe.contentDocument.close();
|
2010-12-31 10:01:49 +00:00
|
|
|
document.body.removeChild(iframe);
|
2012-09-28 00:26:14 +00:00
|
|
|
}});
|
2012-01-31 21:35:51 +00:00
|
|
|
|
2010-05-19 08:22:02 +00:00
|
|
|
</script>
|
|
|
|
</body>
|