Files
sousa-gecko/testing/web-platform/tests/web-extensions/browser.runtime.extension.js
T
Justin Lulejian ce83dfe24b Bug 2043489 [wpt PR 60240] - [Extension][WPT] Add semicolon to trigger WPT runner cache update, a=testonly
Automatic update from web-platform-tests
[Extension][WPT] Add semicolon to trigger WPT runner cache update

Currently Chromium WPT manifest caching has cached[1] this test as a
`support` item, rather than as a `testharness` item.

```
$ jq -c 'paths | select(.[-1] == "browser.runtime.extension.js")' \
  third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json

["items","support","web-extensions","browser.runtime.extension.js"]
```

This causes the Chromium WPT runner to not find the test correctly since
it doesn't look for `support` entries. The caching won't fix itself
because the git hash of browser.runtime.extension.js has not changed.

Adding the semicolon causes the git hash of browser.runtime.extension.js
to change and update the cache entry to `testharness` on the next roll
of WPT (after this submits upstream to
github.com/web-platform-tests/wpt). Then the manifest should update to:

```
$ jq -c 'paths | select(.[-1] == "browser.runtime.extension.js")' \
  third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json

["items","testharness","web-extensions","browser.runtime.extension.js"]
```

[1]:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json

Bug: 493945852
Change-Id: Ib82bdfc120f94566d6bbb4e41824fb2091a9a49c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7879508
Reviewed-by: Tim <tjudkins@chromium.org>
Auto-Submit: Justin Lulejian <jlulejian@chromium.org>
Commit-Queue: Justin Lulejian <jlulejian@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1637717}

--

wpt-commits: f7fd4cae6f32c0f3365c4f316bafe54233e54e61
wpt-pr: 60240
2026-06-02 10:26:28 +00:00

2 lines
49 B
JavaScript

runTestsWithWebExtension("/resources/runtime/");