Regression(r236613): Parser/html-parser.html performance test is failing
[WebKit-https.git] / PerformanceTests / Parser / html-parser.html
index 390daa3..2c35d5d 100644 (file)
@@ -1,19 +1,19 @@
 <!DOCTYPE html>
 <body>
-<pre id="log"></pre>
-<script src="resources/runner.js"></script>
+<script src="../resources/runner.js"></script>
 <script>
-var spec = loadFile("resources/html5.html");
+var spec = PerfTestRunner.loadFile("resources/html5.html");
 
-start(10, function() {
+PerfTestRunner.measureTime({run: function() {
     var iframe = document.createElement("iframe");
     iframe.style.display = "none";  // Prevent creation of the rendering tree, so we only test HTML parsing.
-    iframe.sandbox = '';  // Prevent external script loads which could cause write() to return before completing the parse.
+    iframe.sandbox = 'allow-same-origin';  // Prevent external script loads which could cause write() to return before completing the parse.
     document.body.appendChild(iframe);
     iframe.contentDocument.open();
     iframe.contentDocument.write(spec);
     iframe.contentDocument.close();
     document.body.removeChild(iframe);
-}, 1);
+}});
+
 </script>
 </body>