Bug 24761 - Make it possible to test Full Page Zoom in LayoutTests
Summary: Make it possible to test Full Page Zoom in LayoutTests
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 11:52 PDT by Simon Fraser (smfr)
Modified: 2009-03-23 11:52 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2009-03-23 11:52:20 PDT
It's not possible to fully test full page zoom on LayoutTests.

Using zoom: style does exercise some of the right code paths, but not all of them. When the user zooms, the page is unaware of any change: all the APIs that take and receive coordinates (e.g. event clientX, pageX, offsetX, and document.elementFromPoint()) continue to use "unzoomed" points.

However, if there is zoom style in the content, then those APIs take the zoom into account, and use zoomed points.

So what we need is a DRT API that allows a test to do what Safari does when a page gets zoomed.