Title: [282073] trunk/LayoutTests
Revision
282073
Author
an...@apple.com
Date
2021-09-06 23:34:35 -0700 (Mon, 06 Sep 2021)

Log Message

Add layout test for performance of adding children to a shadow host
https://bugs.webkit.org/show_bug.cgi?id=229960

Reviewed by Ryosuke Niwa.

Add test for https://trac.webkit.org/changeset/281813/webkit

* fast/shadow-dom/host-child-append-performance-expected.txt: Added.
* fast/shadow-dom/host-child-append-performance.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (282072 => 282073)


--- trunk/LayoutTests/ChangeLog	2021-09-07 03:26:03 UTC (rev 282072)
+++ trunk/LayoutTests/ChangeLog	2021-09-07 06:34:35 UTC (rev 282073)
@@ -1,3 +1,15 @@
+2021-09-06  Antti Koivisto  <an...@apple.com>
+
+        Add layout test for performance of adding children to a shadow host
+        https://bugs.webkit.org/show_bug.cgi?id=229960
+
+        Reviewed by Ryosuke Niwa.
+
+        Add test for https://trac.webkit.org/changeset/281813/webkit
+
+        * fast/shadow-dom/host-child-append-performance-expected.txt: Added.
+        * fast/shadow-dom/host-child-append-performance.html: Added.
+
 2021-09-06  Carlos Alberto Lopez Perez  <clo...@igalia.com>
 
         [GTK][WPE] Gardening of two flaky tests and timeout.

Added: trunk/LayoutTests/fast/shadow-dom/host-child-append-performance-expected.txt (0 => 282073)


--- trunk/LayoutTests/fast/shadow-dom/host-child-append-performance-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/shadow-dom/host-child-append-performance-expected.txt	2021-09-07 06:34:35 UTC (rev 282073)
@@ -0,0 +1,2 @@
+This test passes if it doesn't time out
+

Added: trunk/LayoutTests/fast/shadow-dom/host-child-append-performance.html (0 => 282073)


--- trunk/LayoutTests/fast/shadow-dom/host-child-append-performance.html	                        (rev 0)
+++ trunk/LayoutTests/fast/shadow-dom/host-child-append-performance.html	2021-09-07 06:34:35 UTC (rev 282073)
@@ -0,0 +1,12 @@
+<div id=host>This test passes if it doesn't time out</div>
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+
+const shadow = host.attachShadow({ mode: "open" });
+shadow.innerHTML = `
+    <slot></slot>
+`;
+for (i = 0; i < 10000; ++i)
+    host.appendChild(document.createElement("div"));
+</script>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to