diff options
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest/coalesce-2.html')
-rw-r--r-- | testing/talos/talos/tests/perf-reftest/coalesce-2.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest/coalesce-2.html b/testing/talos/talos/tests/perf-reftest/coalesce-2.html new file mode 100644 index 0000000000..1c65fc789e --- /dev/null +++ b/testing/talos/talos/tests/perf-reftest/coalesce-2.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<style> +.x { color: yellow; } +</style> +<script src="util.js"></script> +<script> +function set_class(n) { + let child = n.firstChild; + while (child) { + set_class(child); + child = child.nextSibling; + } + n.className = "x"; +} +window.onload = function() { + let root = build_dom(50000, "div"); + document.body.appendChild(root); + flush_layout(root); + set_class(root); + perf_start(); + flush_style(root); + perf_finish(); +}; +</script> +<body></body> |