Bug 287285
Summary: | Some tests fail if the path contain a full stop (.) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Johannes Odland <johannes.odland> |
Component: | Tools / Tests | Assignee: | Sam Sneddon [:gsnedders] <gsnedders> |
Status: | NEW | ||
Severity: | Normal | CC: | gsnedders, rik, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Mac (Apple Silicon) | ||
OS: | macOS 15 |
Johannes Odland
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Johannes Odland
Example result:
```
-PASS insert-list-into-list-crash
+PASS .odland/dev/WebKit/LayoutTests/editing/execCommand/
```
Sam Sneddon [:gsnedders]
This is probably an upstream WPT bug.
Johannes Odland
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
Pull request: https://github.com/WebKit/WebKit/pull/40494
Radar WebKit Bug Importer
<rdar://problem/144881834>