On Sep 29, 2011, at 11:37 AM, Fady Samuel wrote: > pageScaleFactor is a document level CSS scaling style. Often times, we'd like > to be able to apply style at the document level when writing layout tests. As > far as I'm aware, there's no way to do this in javascript in a layout test? > Is this correct? If so, would anyone object to exposing document-level styles > to window.internals? If not there, is there anywhere else where this can be > exposed for testing purposes?
In the particular case of pageScaleFactor I believe we already have eventSender.scalePageBy. (I think it's on eventSender rather than layoutTestController because it was first used to simulate Safari's pinch-to-zoom feature.) Moving this feature to window.internals and adding other similar features seems fine to me. -Adam _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

