Bug 1367041 recently landed on mozilla-central which should make it
easier to run web-platform-tests from Mozilla source in (some) other
browsers.
|mach wpt| now accepts an argument --product that specifies the browser
to run the tests in. This accepts values of servo, chrome, and edge in
addition to the obvious default of firefox. You must have the relevant
browser installed (and, for servo, on your $PATH, unless you provide a
--binary argument), but additional dependencies (e.g. Chromedriver) will
be downloaded if not available (exception: Microsoft's WebDriver isn't
yet downloaded automatically but a link to the relevant download site is
provided). So for example:
mach wpt --product chrome testing/web-platform/tests/dom/historical.html
will run that single test in Chrome and
mach wpt --product servo --binary ~/servo/target/release/servo dom
will run all dom tests in the specified servo build.
If you want to add expectation metadata for a non-firefox browser you
are testing it can be placed in testing/web-platform/products/{product};
this directory is ignored by the VCS (note that |mach wpt-update|
doesn't yet know about different products, although that shouldn't be
hard to fix).
Support for additional browsers will come. In particular Safari once a
patch for wptrunner lands (although this is likely to always require
some manual steps to enable automation), and maybe random browsers via
Sauce Labs if there's demand.
Obvious note: this works on my machine but it wouldn't be too surprising
if it doesn't work on your machine. If you run into problems file a bug
in Testing::web-platform-tests or complain at me on irc.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform