summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/perf-reftest-singletons/attr-selector-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest-singletons/attr-selector-1.html')
-rw-r--r--testing/talos/talos/tests/perf-reftest-singletons/attr-selector-1.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest-singletons/attr-selector-1.html b/testing/talos/talos/tests/perf-reftest-singletons/attr-selector-1.html
new file mode 100644
index 0000000000..46fe9b6d0a
--- /dev/null
+++ b/testing/talos/talos/tests/perf-reftest-singletons/attr-selector-1.html
@@ -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']", 500, "{}"));
+ document.head.appendChild(build_rule("[data-x$='abcdefghijklmnopqrstuvwxy.']", 500, "{}"));
+ document.head.appendChild(build_rule("[data-x*='abcdefghijklmnopqrstuvwxy.']", 500, "{}"));
+ perf_start();
+ flush_style(document.body.lastChild);
+ perf_finish();
+};
+</script>