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 upTrigger WindowEvent::Resize when resizing in headless mode #15818
Conversation
highfive
commented
Mar 4, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon. |
|
If you follow these instructions, you can add a new test in tests/wpt/mozilla/tests/mozilla using the testharness.js API (you probably want to use |
|
@jdm @SimonSapin ready for review |
|
We should add an assert that window.clientWidth and clientHeight equal the new dimension inside of the event handler, too. |
|
@jdm I just submitted the tests you asked for. Everything is working correctly :-) |
|
This ends up testing that clientWidth == clientHeight, and uses a descriptive label of "200". We should use two separate uses of assert_equals instead. |
|
@jdm oh that was some ugly mistake – by reading the examples I thought that So, it turns out that both Also, do you have ideias why this build is failing? |
|
Oops, I meant innerWidth/innerHeight; clientWidth/clientHeight is a property of Element objects, not Window. |
|
The travis build is failing because you have modified a test file without updating the manifest (I know, it's rather annoying). You will need to run |
|
@jdm Now it makes sense and tests are passing, thx for the tips. |
|
@jdm any updates about this pr? :-) |
|
Sorry, I've been on vacation. I will look at my review queue (including this PR) starting Wednesday. |
|
@bors-servo try |
Trigger WindowEvent::Resize when resizing in headless mode When resizing in headless mode a resize event is now fired --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15621 <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/15818) <!-- Reviewable:end -->
|
|
|
|
@alanhoff Are you able to reproduce the test failures locally on your machine? |
|
Does the test pass locally with --no-pause-after-test? That flag ensures that the test is run in a headless environment. |
|
@jdm it completes without error
|
|
@KiChjang I don't know exactly the commend that the test runner used to yield that error, could you help me with that? |
|
I'm not sure why the test take almost 60s for you, but when I run |
|
|
|
@alanhoff Do you need help with this? |
|
@nox I need help figuring out why the test works locally and times out on the build machines. |
|
Since Glutin is going away and the issues with this PR were never fixed, it can be closed :( This is still a problem however, even with the Surfman + Winit PR branch, so the issue should stay open. |
alanhoff commentedMar 4, 2017
•
edited
When resizing in headless mode a resize event is now fired
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is