Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd an API to change page zoom from tests. #15806
Open
Labels
Comments
|
/me wants to learn :) I'll bug you on IRC as soon as I am blocked. |
bors-servo
added a commit
that referenced
this issue
Mar 8, 2017
…r=emilio Add an API to change page zoom from tests - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15806 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15825) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 9, 2017
…r=emilio Add an API to change page zoom from tests - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15806 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15825) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 9, 2017
…r=emilio Add an API to change page zoom from tests - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15806 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15825) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now we have tests for viewport resizing, but those are done via iframes and end up being intermittents easily.
We should add an API to modify the page zoom factor to
TestBinding.webidl, which can be done programatically easily.When that's done, we can land the test from #15801, with something as follows:
(And an appropriate reftest).
For examples on how to add a testing API to
TestBinding, you can see #12392.For changing the page zoom, we may want to replicate the whole API that goes through the compositor, but the easiest way is to send the equivalent to synchronously call
handle_resize_eventwith the test data in order to update thewindow_sizefield.I'm willing to mentor this. A decent amount of experience or willingness to learn is needed.