NEW 287285
Some tests fail if the path contain a full stop (.)
https://bugs.webkit.org/show_bug.cgi?id=287285
Summary Some tests fail if the path contain a full stop (.)
Johannes Odland
Reported 2025-02-07 12:52:32 PST
The substring call in `get_title()` in `resources/testharness.js causes the test to fail when pathname contains full stop. ``` if ('location' in global_scope) { return location.pathname.substring(location.pathname.lastIndexOf('/') + 1, location.pathname.indexOf('.')); } ```
Attachments
Johannes Odland
Comment 1 2025-02-07 12:53:40 PST
Example result: ``` -PASS insert-list-into-list-crash +PASS .odland/dev/WebKit/LayoutTests/editing/execCommand/ ```
Sam Sneddon [:gsnedders]
Comment 2 2025-02-07 14:56:53 PST
This is probably an upstream WPT bug.
Johannes Odland
Comment 3 2025-02-08 03:10:28 PST
This is the WebKit `LayoutTests/resources/testharness.js` file. I haven't experienced the same problem with the WPT files.🤔 I think switching to `lastIndexOf('.')` would fix the issue, but there's still so many tests failing on my Mac that it's hard to verify.
Johannes Odland
Comment 4 2025-02-12 10:55:36 PST
Radar WebKit Bug Importer
Comment 5 2025-02-14 12:53:15 PST
Note You need to log in before you can comment on or make changes to this bug.