Skip to content

Commit

Permalink
check path correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Dec 19, 2024
1 parent 0f45932 commit 985624e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/manifest/sourcefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,9 @@ def has_testdriver(self) -> Optional[bool]:
def ___get_testdriver_include_path(self) -> Optional[str]:
if self.script_metadata:
for (meta, content) in self.script_metadata:
if meta.strip() == 'script' and content.startswith(
'/resources/testdriver.js'):
if meta.strip() == 'script' and (
content == '/resources/testdriver.js' or content.startswith(
'/resources/testdriver.js?')):
return content.strip()

if self.root is None:
Expand Down

0 comments on commit 985624e

Please sign in to comment.