Commit 5eb25116 authored by shinyak@chromium.org's avatar shinyak@chromium.org

[Shadow] LargeDistributionWithLayout.html should be updated

https://bugs.webkit.org/show_bug.cgi?id=105242

Reviewed by Ryosuke Niwa.

Since this test was written when distribution took O(N^2). However, now it's almost O(N), so this test finishes
in very short time. We should convert it unit to runs/s.

This test contains a some error to cause test failure, e.g. using obsolete API, so they also should be fixed.

* ShadowDOM/LargeDistributionWithLayout.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c8513936
2012-12-17 Shinya Kawanaka <shinyak@chromium.org>
[Shadow] LargeDistributionWithLayout.html should be updated
https://bugs.webkit.org/show_bug.cgi?id=105242
Reviewed by Ryosuke Niwa.
Since this test was written when distribution took O(N^2). However, now it's almost O(N), so this test finishes
in very short time. We should convert it unit to runs/s.
This test contains a some error to cause test failure, e.g. using obsolete API, so they also should be fixed.
* ShadowDOM/LargeDistributionWithLayout.html:
2012-12-13 Ryosuke Niwa <rniwa@webkit.org>
[chromium perf] DOM/DOMWalk.html failures
......
......@@ -23,14 +23,15 @@ function setup()
host.appendChild(div);
}
var content = document.createElement('content');
var shadowRoot = new WebKitShadowRoot(host);
window.content = document.createElement('content');
var shadowRoot = host.webkitCreateShadowRoot();
shadowRoot.appendChild(content);
}
function run()
{
var host = document.getElementById('host');
var content = window.content;
var nLoops = window.nLoops;
var div = document.createElement('div');
......@@ -46,10 +47,9 @@ function done()
wrapper.innerHTML = '';
}
setup();
PerfTestRunner.measureTime({
PerfTestRunner.measureRunsPerSecond({
description: "Measure Distribution and Layout time (with a lot of host children)",
run: run,
done: done
......
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