A patch for WebKit Bug 80709 landed the W3C test harness (testharness.js and testharnessreport.js) in the WebKit repository. We had to make a small change to the default output of testharness.js – specifically – stripping the HTML formatted table and instead outputting the test results in plain text. This change was required for compatibility with the WebKit test infrastructure, and was implemented in testharnessreport.js.
The relative path above would need to be updated based on the exact location of the test file in question. The scripts are located in the WebKit repository under the LayoutTests/resources directory. Instructions for how to use testharness.js are detailed in the comment section of the script file itself.
A process for importing third party tests was drafted at the April 2012 WebKit Contributors Meeting and captured on the WebKit wiki here. This process is currently being discussed and refined by the community. Once it has been finalized, W3C test suites will be identified and imported into the WebKit repository.
This new capability allows not only for the reuse of W3C tests by the WebKit community, it also lets test authors write a test once for both W3C and WebKit, decreasing the effort required to write tests while increasing the test coverage for each repository and improving the ability to detect regressions.
Maintaining and expanding a robust set of tests is essential to ensuring that both existing and new web features provide the best experience possible to Internet users. If you are passionate about the web, please join us for the test-a-thon and help Test the Web Forward!