Commit 215464fc authored by dominicc@chromium.org's avatar dominicc@chromium.org

Unreviewed, re-land r140051.

I overzealously rolled this out; the test was intended to be
skipped, but was not skipped because of a typo in Skipped. See
<https://bugs.webkit.org/show_bug.cgi?id=107210>

* Parser/html-parser-srcdoc.html: Added.
* Skipped: Big-P Parser.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 33058a4e
2013-01-17 Dominic Cooney <dominicc@chromium.org>
Unreviewed, re-land r140051.
I overzealously rolled this out; the test was intended to be
skipped, but was not skipped because of a typo in Skipped. See
<https://bugs.webkit.org/show_bug.cgi?id=107210>
* Parser/html-parser-srcdoc.html: Added.
* Skipped: Big-P Parser.
2013-01-17 Sheriff Bot <webkit.review.bot@gmail.com>
Unreviewed, rolling out r140051.
......
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<script>
// Use the threaded parser if available:
if (window.internals && window.internals.settings.setThreadedHTMLParser)
window.internals.settings.setThreadedHTMLParser(true);
var spec = PerfTestRunner.loadFile("resources/html5.html");
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.
document.body.appendChild(iframe);
PerfTestRunner.prepareToMeasureValuesAsync({done: onCompletedRun, unit: 'ms'});
iframe.onload = function() {
var now = PerfTestRunner.now();
PerfTestRunner.measureValueAsync(now - then);
then = now;
iframe.srcdoc = spec;
}
var then = PerfTestRunner.now();
iframe.srcdoc = spec;
function onCompletedRun() {
iframe.onload = null;
// FIXME: This should probably remove the iframe, but that currently
// causes the threaded-parser to never send the load event for the main page.
// document.body.removeChild(iframe);
}
</script>
</body>
......@@ -67,3 +67,8 @@ SVG/SvgNestedUse.html
ShadowDOM
Canvas/drawimage.html
# Works fine, but is mostly useful to the threaded-parsing folks, as
# it's very similar to parser/html-parser.html just using
# srcdoc to load instead of document.write.
Parser/html-parser-srcdoc.html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment