Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[testharness.js] Fix issue caused when path contains full stop charac…
…ters (.) web-platform-tests#50693 The current implementation of `get_title()` assumes that the path does not contain a full stop character. If it does, `get_title()` would return parts of the path, in stead of the filename. The pathname `/a.path/filename.html` would cause `get_title()` to return `.path` instead of the expected `filename`. This change fixed the issue by trimming the path away before searching for the extension. It maintains the current behavior, where it only keeps the first part of the filename if the filename contains multiple full stop characters. `/path/filename.foo.html` still returns `filename`.
- Loading branch information