Bug 147193

Summary: Implement an internal API to paint DOM elements onto a canvas for testing
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, simon.fraser, thorton, zalan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Wenson Hsieh 2015-07-22 09:53:16 PDT
While working on https://bugs.webkit.org/show_bug.cgi?id=147192, I realized that there's no easy way to test the fact that search fields should be empty (no placeholder text) by default besides using pixel tests, which are not particularly useful. This could be addressed via an internal API that renders DOM elements  or part of the DOM onto a canvas element in the DOM, so that we can run tests regarding the look of elements in Javascript, without using pixel tests.