Support reftest-wait in web-platform-tests (#5057)

The web-platform-tests (wpt) suite allows tests to control when the screenshot is
taken for reftests, based on the presence (and then absence) of a 'reftest-wait'
class on the root element.

To support this mechanism a JavaScript shim is inserted into wpt tests, which uses
existing TestRunner methods (waitUntilDone, notifyDone), combined with a
MutationObserver on the root element.

BUG=698256

Review-Url: https://codereview.chromium.org/2729863004
Cr-Commit-Position: refs/heads/master@{#455009}



View on GitHub: https://github.com/w3c/web-platform-tests/pull/5057

Received on Tuesday, 7 March 2017 01:07:48 UTC