When looking at test file source code in searchfox, do you find yourself
disappointed that the test info box above the source listing ends too
soon, just when it was getting interesting?
We are happy to announce that in collaboration with Joel Maher
implementing new test information capabilities in
https://bugzilla.mozilla.org/show_bug.cgi?id=1793691 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1793486 and with much
assistance from WPT-Wizard James Graham, searchfox test info boxes are
now both longer and more interesting!
Specifically, with the landing of
https://github.com/mozsearch/mozsearch/pull/596:
- Searchfox now lists the manifests that reference a test file. Not only
that, both multiple manifests and manifest inclusions are handled!
Check out
https://searchfox.org/mozilla-central/source/dom/serviceworkers/test/browser_antitracking.js
for an example of both of those things happening at once!
- Searchfox now understands that for Web Platform Tests, a single test
source file may actually correspond to multiple different Test IDs. For
example, "foo.any.js" using the multiple global mechanism[1] may end up
as "foo.any.html", "foo.any.serviceworker.html",
"foo.any.sharedworker.html" and "foo.any.worker.html". In order to make
the test info box longer, searchfox lists all of the test IDs it knows
about for a file. In order to make the test info box wider, searchfox
provides a link for the wpt.fyi "WPT Dashboard" and James Graham's
Interop Dashboard for each test ID. (Coincidentally, this is also the
correct way to do it, as none of the linked tools know what to do with a
source file link, as searchfox was previously doing.) You can see an
example at
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/service-workers/cache-storage/cache-put.https.any.js
noting that https://bugzilla.mozilla.org/show_bug.cgi?id=1804196 has
been filed for the subtest count already.
Andrew
1:
https://web-platform-tests.org/writing-tests/testharness.html#tests-for-other-or-multiple-globals-any-js
--
You received this message because you are subscribed to the Google Groups
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dev-platform+unsubscr...@mozilla.org.
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/e4959ef1-ea2c-91c6-2cf7-97006083033b%40asutherland.org.