[webkit-dev] Another WPT bite
beidson at apple.com
Mon May 8 22:17:17 PDT 2017
> On May 8, 2017, at 9:31 PM, youenn fablet <youennf at gmail.com> wrote:
> Hi all,
> Discussing with some WebKittens, testharness.js is more and more used in WebKit.
> Is it time to make testharness.js the recommended way of writing LayoutTests?
Setting aside the pros or cons of testharness.js itself, I disagree with the principle of "1 single way to write all regression tests"
In the past 11 years I've heard from multiple members of the team commenting on the benefits of different people writing regression tests in their own styles using their own techniques. We're capable of covering more edge cases when we don't have enforced uniformity. And I agree wholeheartedly.
But now talking about testharness.js directly, I object on the grounds of "a file:// regression test is dirt easy to hack on and work with, whereas anything that requires me to have an httpd running is a PITA"
Note: I don't intend for any of this to mean I discourage the use of testharness.js tests. I don't. By all means, write them.
I just object to making it the "recommended way" of writing tests.
> To continue moving forward, some of us are proposing to serve all tests in LayoutTests/wpt through the WPT server .
> This would serve some purposes like increasing the use of WPT goodies: file-specific headers, templated tests (*.any.js), IDLParser, server-side scripts...
> It could also ease test migration from WebKit to W3C WPT.
> Some rules can guide whether adding tests to LayoutTests/wpt or LayoutTests/imported/w3c/web-platform-tests:
> - WebKit specific tests (crash tests, tests using internals...) in LayoutTests/wpt
> - Spec conformance/interoperability tests in LayoutTests/imported/w3c/web-platform-tests
> : bug 171479 <https://bugs.webkit.org/show_bug.cgi?id=171479>
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev