Bug 1641108 - Add perf-reftest-singleton for bug 1640545 changes. r=emilio,perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D76966
This commit is contained in:
Cameron McCormack 2020-05-27 12:01:53 +00:00
parent dcaf3bd40f
commit 4d86697e24
3 changed files with 17 additions and 0 deletions

View File

@ -40,6 +40,7 @@
"js-input/sunspider/string-unpack-code.html",
"js-input/sunspider/string-validate-input.html",
"talos/tests/perf-reftest-singletons/abspos-reflow-1.html",
"talos/tests/perf-reftest-singletons/attr-selector-1.html",
"talos/tests/perf-reftest-singletons/bidi-resolution-1.html",
"talos/tests/perf-reftest-singletons/bloom-basic-2.html",
"talos/tests/perf-reftest-singletons/bloom-basic.html",

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<body>
<script src="util.js"></script>
<script>
window.onload = function() {
document.body.appendChild(build_dom(10000, "div", { attributes: { "data-x": "https://example.com/b/abcdefghijklmnopqrstuvwxyz" } }));
flush_layout(document.body);
document.head.appendChild(build_rule("[data-x^='https://example.com/a']", 10000, "{}"));
document.head.appendChild(build_rule("[data-x$='abcdefghijklmnopqrstuvwxy.']", 10000, "{}"));
document.head.appendChild(build_rule("[data-x*='abcdefghijklmnopqrstuvwxy.']", 10000, "{}"));
perf_start();
flush_style(document.body.lastChild);
perf_finish();
};
</script>

View File

@ -1,5 +1,6 @@
# When modifying this list, please also update build/pgo/index.html.
% http://localhost/tests/perf-reftest-singletons/abspos-reflow-1.html
% http://localhost/tests/perf-reftest-singletons/attr-selector-1.html
% http://localhost/tests/perf-reftest-singletons/bidi-resolution-1.html
% http://localhost/tests/perf-reftest-singletons/bloom-basic-2.html
% http://localhost/tests/perf-reftest-singletons/bloom-basic.html