[Webkit-unassigned] [Bug 47966] fast/css/long-css-selector-matches.html test causes TIMEOUT in some platforms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 9 11:24:33 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=47966

--- Comment #4 from Osvaldo Rivera <osvaldo.rivera1994 at gmail.com> ---
Comment on attachment 71254
  --> https://bugs.webkit.org/attachment.cgi?id=71254
make-depth-level-smaller

>diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
>index bfca68226cfc30be622d8a20db78080329114f45..1087e1bf33d1ebf9455085cbf1695b1c8c1e63b3 100644
>--- a/LayoutTests/ChangeLog
>+++ b/LayoutTests/ChangeLog
>@@ -1,3 +1,14 @@
>+2010-10-19  Hayato Ito  <hayato at chromium.org>
>+
>+        Reviewed by NOBODY (OOPS!).
>+
>+        Make a depth level smaller so that the test does not cause TIMEOUT.
>+
>+        https://bugs.webkit.org/show_bug.cgi?id=47966
>+
>+        * fast/css/long-css-selector-matches.html:
>+        * platform/chromium/test_expectations.txt:
>+
> 2010-10-19  Sheriff Bot  <webkit.review.bot at gmail.com>
> 
>         Unreviewed, rolling out r70124.
>diff --git a/LayoutTests/fast/css/long-css-selector-matches.html b/LayoutTests/fast/css/long-css-selector-matches.html
>index 8f59bb89473553c120d15c052188797468041623..9bd740e18614662ef0c0f0dea3c6891b4184db99 100644
>--- a/LayoutTests/fast/css/long-css-selector-matches.html
>+++ b/LayoutTests/fast/css/long-css-selector-matches.html
>@@ -26,10 +26,17 @@ function generate_deeply_nested_elements(nestlevel) {
>     document.body.appendChild(div);
> }
> 
>-generate_deeply_nested_selector(10000, 'red');
>-generate_deeply_nested_selector(10000, 'blue');
>+// Be careful in setting a depth_level.
>+// To make sure a crash happens in a bad implementation, we have to increase the depth_level.
>+// But doing so increases an execution time of this test. The current value, 2000, does not
>+// cause a crash even in a bad implementation in most platforms. The value is a result of compromise
>+// between a reproducibility and an execution time.
>+var depth_level = 2000;
> 
>-generate_deeply_nested_elements(10000);
>+generate_deeply_nested_selector(depth_level, 'red');
>+generate_deeply_nested_selector(depth_level, 'blue');
>+
>+generate_deeply_nested_elements(depth_level);
> 
> if (window.layoutTestController)
>     layoutTestController.dumpAsText();
>diff --git a/LayoutTests/platform/chromium/test_expectations.txt b/LayoutTests/platform/chromium/test_expectations.txt
>index 326c4340f9c91d2df2f3d97382139b5610ac20bf..0ad26bb758b4ba4a93e5833c1b63fa66057bb6c1 100644
>--- a/LayoutTests/platform/chromium/test_expectations.txt
>+++ b/LayoutTests/platform/chromium/test_expectations.txt
>@@ -3211,7 +3211,6 @@ BUGWK47512 : fast/images/webp-image-decoding.html = TEXT
> // Need investigation
> BUGJAMESR WIN LINUX : editing/spelling/spelling-contenteditable.html = TEXT
> BUGJAMESR WIN LINUX : editing/spelling/spelling-textarea.html = TEXT
>-BUGJAMESR DEBUG : fast/css/long-css-selector-matches.html = PASS TIMEOUT
> 
> BUG59647 WIN : svg/dom/length-list-parser.html = PASS CRASH
>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230709/71e3fc86/attachment.htm>


More information about the webkit-unassigned mailing list