Revision control

1
<html>
2
<body>
3
<script src="../resources/magnitude-perf.js"></script>
4
<script>
5
function setupFunction(magnitude)
6
{
7
}
8
9
function test(magnitude)
10
{
11
for (var i = 0; i < magnitude; i++) {
12
document.body.appendChild(document.createTextNode(' '));
13
document.body.appendChild(document.createElement('div'));
14
document.body.appendChild(document.createTextNode(' '));
15
}
16
document.body.innerHTML = "";
17
}
18
19
Magnitude.description("Tests that style recalculation time is linear when adding text nodes that do not have renderers. See https://bugs.webkit.org/show_bug.cgi?id=110786");
20
Magnitude.run(setupFunction, test, Magnitude.LINEAR);
21
</script>
22
</body>
23
</html>