Commit graph

7364 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
dd65470dd9
style: Rustfmt again. 2019-06-25 13:11:32 +02:00
Emilio Cobos Álvarez
15f7daf5f5
Update test expectations. 2019-06-25 13:11:32 +02:00
Emilio Cobos Álvarez
36c39d53f7
style: Give up on test_parse_stylesheet.
It's not particularly useful.
2019-06-25 13:11:32 +02:00
bors-servo
f43af3c634
Auto merge of #23626 - servo-wpt-sync:wpt_update_24-06-2019, r=servo-wpt-sync
Sync WPT with upstream (24-06-2019)

Automated downstream sync of changes from upstream as of 24-06-2019.
[no-wpt-sync]

<!-- 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/23626)
<!-- Reviewable:end -->
2019-06-25 05:57:20 -04:00
bors-servo
7490dd6f0d
Auto merge of #23536 - gatoWololo:omar_timing_entries, r=jdm
Let resources timing entries be added to performance entry buffer.

<!-- Please describe your changes on the following line: -->
Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they _fix_ the issue.

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes: Existing tests have been updated to expect pass/failures.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23536)
<!-- Reviewable:end -->
2019-06-24 10:48:39 -04:00
WPT Sync Bot
b0f3d082ab Update web-platform-tests to revision 76ef43a54441ca53b6931dd714eb9124404bff76 2019-06-24 14:44:16 +00:00
bors-servo
a2b195aff8
Auto merge of #23588 - georgeroman:implement_status_wd_command, r=ferjm
Implement Status WebDriver command

<!-- Please describe your changes on the following line: -->

---
<!-- 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

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23588)
<!-- Reviewable:end -->
2019-06-23 19:44:59 -04:00
WPT Sync Bot
c700482629 Update web-platform-tests to revision 3cb5a99e5521936fb8819de8aaba806050b84184 2019-06-23 14:05:43 +00:00
bors-servo
1d2c0ba0bc
Auto merge of #23593 - georgeroman:fix_panic_on_opening_directory, r=Manishearth
Fix panic on opening a directory

<!-- Please describe your changes on the following line: -->

---
<!-- 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

Continued from https://github.com/servo/servo/pull/23548

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23593)
<!-- Reviewable:end -->
2019-06-22 22:24:08 -04:00
bors-servo
ea108ffc47
Auto merge of #23592 - servo-wpt-sync:wpt_update_18-06-2019, r=jdm
Sync WPT with upstream (18-06-2019)

Automated downstream sync of changes from upstream as of 18-06-2019.
[no-wpt-sync]

<!-- 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/23592)
<!-- Reviewable:end -->
2019-06-22 20:08:29 -04:00
bors-servo
2cbd177082
Auto merge of #23581 - georgeroman:implement_get_page_source_wd_command, r=jdm
Implement GetPageSource WebDriver command

<!-- Please describe your changes on the following line: -->

---
<!-- 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

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23581)
<!-- Reviewable:end -->
2019-06-22 19:11:59 -04:00
Josh Matthews
ee5e2ff3b4
Remove intermittent failure 2019-06-18 12:06:59 -07:00
George Roman
12877511db Implement Status WebDriver command 2019-06-18 17:08:26 +03:00
WPT Sync Bot
a41065a1f4 Update web-platform-tests to revision 887d08e63a19b14acf3217df77f12c121a792fed 2019-06-18 14:07:33 +00:00
George Roman
29bdcba1e8 Fix panic on opening a directory 2019-06-18 17:01:51 +03:00
George Roman
13d908ab15 Implement GetPageSource WebDriver command 2019-06-17 13:06:29 +03:00
Josh Matthews
2591ae428a
Remove intermittent failure. 2019-06-16 12:55:56 -04:00
WPT Sync Bot
35b828da75 Update web-platform-tests to revision 4100d1d51b885185c50902397f7d203d89efc24c 2019-06-16 14:45:58 +00:00
Michal Mieczkowski
2726fc1dea Restore DummyClipboardContext for textinput.rs tests 2019-06-15 12:12:15 +02:00
George Roman
2e0556c503 Run wdspec tests in a different job 2019-06-14 23:30:33 +03:00
bors-servo
631f6bef8d
Auto merge of #23563 - servo-wpt-sync:wpt_update_13-06-2019, r=servo-wpt-sync
Sync WPT with upstream (13-06-2019)

Automated downstream sync of changes from upstream as of 13-06-2019.
[no-wpt-sync]

<!-- 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/23563)
<!-- Reviewable:end -->
2019-06-14 05:55:27 -04:00
WPT Sync Bot
69d6c85949 Update web-platform-tests to revision e1942ace5be3a3962f204e630e9969acd70e3952 2019-06-13 14:01:23 +00:00
bors-servo
e1c53488d6
Auto merge of #23561 - georgeroman:enable_cookies_related_wdspec_tests, r=jdm
Enable cookies related wdspec tests

<!-- Please describe your changes on the following line: -->

---
<!-- 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

<!-- Either: -->
- [X] There are tests for these changes OR

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23561)
<!-- Reviewable:end -->
2019-06-13 09:25:11 -04:00
bors-servo
8a69cb391f
Auto merge of #23557 - Manishearth:xrtest, r=asajeffrey
Test more XR things

This tests all the things that are currently possible and useful to test.

I'm going to avoid expanding rust-webvr's mock functionality for now, instead growing it in rust-webxr

Things that we support which aren't tested yet:

 - viewport values (there's no way in the xrtest api to mock these yet)
 - input (no support in rust-webvr for mocking)
 - floor spaces (no way in the xrtest api to mock these yet)

r? @asajeffrey

<!-- 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/23557)
<!-- Reviewable:end -->
2019-06-13 05:54:55 -04:00
Manish Goregaokar
5b8f0ed2e3 Add tests for viewer space 2019-06-12 19:24:47 -07:00
bors-servo
a5c515b81c
Auto merge of #23552 - Eijebong:fix-23511, r=jdm
Prevent the error from triggering a page error in Worker-nested-importScripts-error

Fixes #23511

<!-- 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/23552)
<!-- Reviewable:end -->
2019-06-12 19:51:47 -04:00
bors-servo
a74f38f843
Auto merge of #23551 - asajeffrey:script-navigatorid, r=jdm
Added missing NavigatorId attributes

<!-- Please describe your changes on the following line: -->

Add the missing attributes from https://html.spec.whatwg.org/multipage/system-state.html#navigatorid

---
<!-- 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 do not require tests because there are already tests for Navigator

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23551)
<!-- Reviewable:end -->
2019-06-12 16:59:31 -04:00
Manish Goregaokar
f09d160823 Add test for viewer head pose 2019-06-12 11:45:28 -07:00
Manish Goregaokar
73bd249b7a Add test for origin offset 2019-06-12 11:44:43 -07:00
Manish Goregaokar
db7a08b5c6 Test XRRigidTransform.inverse 2019-06-12 11:44:35 -07:00
Manish Goregaokar
745ed51172 Use more complex view positions 2019-06-12 11:44:15 -07:00
Manish Goregaokar
167ea556ce Make webxr test use async/await 2019-06-12 11:44:03 -07:00
Alan Jeffrey
54ba32b50e Updated more test expectations 2019-06-12 09:33:35 -05:00
WPT Sync Bot
ba8922cc76 Update web-platform-tests to revision bbfea06cb188fbe7b7004bd838ccbfb4f50f429c 2019-06-12 14:00:17 +00:00
Bastien Orivel
834e5778a0 Prevent the error from triggering a page error in Worker-nested-importScripts-error
Fixes #23511
2019-06-12 10:15:52 +02:00
bors-servo
8e783577d2
Auto merge of #23468 - servo:jdm-patch-52, r=asajeffrey
Add Windows arm64 build.

Depends on:
* [x] https://github.com/servo/mozjs/pull/184
* [x] https://github.com/servo/rust-mozjs/pull/463
* [ ] <strike>https://github.com/servo/ipc-channel/pull/232</strike>
* [x] https://github.com/alexcrichton/cmake-rs/pull/82
* [x] https://github.com/servo/rust-offscreen-rendering-context/pull/136
* [x] https://github.com/servo/mozangle/pull/21

<!-- 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/23468)
<!-- Reviewable:end -->
2019-06-11 17:21:36 -04:00
George Roman
c6dfc5a02d Enable cookies related wdspec tests 2019-06-11 23:46:04 +03:00
Josh Matthews
b90726de97 Use non-sse2 mozangle. 2019-06-11 15:53:34 -04:00
bors-servo
f63b404e0c
Auto merge of #23547 - Manishearth:reference-spaces, r=asajeffrey
Update to latest WebXR spec, add tests

This pulls in a bunch of the newer stuff. I think with this PR we're spec-compatible for the things we support.

<s>For testing I'm likely going to write custom tests rather than adapting the existing ones, as a first pass, but when I start adapting the existing ones these changes will make it smoother.</s>

This PR also adds some pretty simple tests that deal with core functionality.

r? @jdm @asajeffrey

<!-- 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/23547)
<!-- Reviewable:end -->
2019-06-11 15:50:15 -04:00
Alan Jeffrey
d3256d74b4 Update test expectations 2019-06-11 14:12:02 -05:00
Manish Goregaokar
01665fe94a Add basic XR tests 2019-06-11 11:30:47 -07:00
gatowololo
9eb3687b19 Let resources timing entries be added to performance entry buffer.
Update relevant tests to properly report and expect failure.
Update manifest.
2019-06-11 09:40:31 -07:00
WPT Sync Bot
653b871d4f Update web-platform-tests to revision a412aa768f8558ec93bcab7e7f1aabcce6f38e88 2019-06-11 14:14:27 +00:00
bors-servo
973a3448a4
Auto merge of #23154 - robert-snakard:issue_22843, r=paulrouget
Implement WheelEvent interface

Created a new dom interface: "WheelEvent" and added WPT tests to confirm the interface works. To do this I had to do the following:

- Create a new `WheelEvent` dom interface. It can be found in `script/dom/wheelevent.rs` and `dom/webidls/WheelEvent.webidl`
- Add a new `WheelEvent` option to the compositor's `CompositorEvent` enum
- Add a new `Wheel` option to the compositor's `WindowEvent` enum
- Add a new `WheelDelta` type to the `script_traits` module
- Modify the `scroll_event` logic. Now we send a `WheelEvent` before scrolling. Repeat: we send the WheelEvent notification BEFORE we send the scroll delta.
- Add two manual wpt tests to the `uievents/order-of-events` test collection

---
<!-- 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 #22843 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23154)
<!-- Reviewable:end -->
2019-06-09 13:55:03 -04:00
Robert Snakard
52a8f5adf6 Add WPT tests for WheelEvent
The wheelevent sends a signal when a supported device is rotated in the
x, y, or z rotational dimensions. These tests only check whether this
signal is received for any rotation at all.
2019-06-09 13:25:02 -04:00
Robert Snakard
35bca991ad Implement WheelEvent Interface
Note: The WheelEvent interface supports rotation in all 3 spatial
dimensions. This implementation only supports two due to limitations
in the Glutin compositor.

The wheelevent interface is a dom interface that triggers for any
attached device that can rotate in one or more spatial dimensions.
Traditionally this is the mouse wheel though other devices could be
used as well. E.g. the trackball on a trackball mouse.
2019-06-09 13:25:01 -04:00
WPT Sync Bot
757460ed0d Update web-platform-tests to revision e7b1c6eb7d9a419fa441dad5241ce7c54a73c284 2019-06-09 14:22:48 +00:00
bors-servo
8f11b52d9a
Auto merge of #23541 - servo-wpt-sync:wpt_update_08-06-2019, r=servo-wpt-sync
Sync WPT with upstream (08-06-2019)

Automated downstream sync of changes from upstream as of 08-06-2019.
[no-wpt-sync]

<!-- 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/23541)
<!-- Reviewable:end -->
2019-06-08 12:30:07 -04:00
WPT Sync Bot
92fa6ede85 Update web-platform-tests to revision ea852ede3b4e0632fd453ed520b26b22692c2d92 2019-06-08 14:24:52 +00:00
bors-servo
d72cd4df20
Auto merge of #23530 - gatoWololo:omar_update_CustomElementConstructor_type, r=cybai,jdm
Use TypeError instead of InvalidState for exception.

<!-- Please describe your changes on the following line: -->
Use TypeError instead of InvalidState as per https://github.com/whatwg/html/pull/4525 for making CustomElementConstructor exceptions more consistent.

<!-- 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 #23202  (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes: Tests that expected failure now expect passing with correct result.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23530)
<!-- Reviewable:end -->
2019-06-08 08:15:12 -04:00