[webkit-dev] Testing feature suggestion: animation/interaction pixel-results "on the fly"
noam.rosenthal at nokia.com
noam.rosenthal at nokia.com
Fri Feb 8 05:35:19 PST 2013
Hellos
we don't currently have a solution in webkit's test infrastructure for testing animations "on the fly", or in general for testing multiple image results in the same test.
(If this was discussed before and I'm unaware of that discussion, please stop me here...)
This is because ImageDiff works on the single-test level, and you can't explicitly make image comparisons in the same test at different points in time.
This has before caused us several regressions that were not caught by layout tests.
I'd like to propose a solution, and would welcome some feedback on whether it's a good one...
The idea is that you would be able to programatically retrieve the current snapshot into a canvas ImageData, and then compare the pixel results with JavaScript in the LayoutTest. Something like:
window.testRunner.getWindowSnapshot(function(snapshot) {
if (snapshot.data[snapshot.width * 100 + 10] != 127)
output.innerHTML = "FAIL";
});
WDYT?
Noam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130208/1c90ddb6/attachment.html>
More information about the webkit-dev
mailing list