Bug 147193 - Implement an internal API to paint DOM elements onto a canvas for testing
Summary: Implement an internal API to paint DOM elements onto a canvas for testing
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-22 09:53 PDT by Wenson Hsieh
Modified: 2015-07-22 10:24 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.