Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic XR Testing support #23485

Merged
merged 11 commits into from May 31, 2019
Merged

Basic XR Testing support #23485

merged 11 commits into from May 31, 2019

Conversation

@Manishearth
Copy link
Member

Manishearth commented May 30, 2019

This adds support for the XRTest and FakeXRDeviceController APIs from https://github.com/immersive-web/webxr-test-api, and plugs them into the mock backend of rust-webvr.

Tested with a modified webxr test page

r? @jdm @asajeffrey


This change is Reviewable

@highfive
Copy link

highfive commented May 30, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webidls/XRTest.webidl, components/script/dom/xrtest.rs, components/script/dom/fakexrdevicecontroller.rs, components/script/dom/xrspace.rs, components/script/dom/mod.rs and 3 more
  • @wafflespeanut: python/tidy/servo_tidy/tidy.py
  • @edunham: python/tidy/servo_tidy/tidy.py
  • @paulrouget: components/servo/lib.rs
  • @KiChjang: components/script/dom/webidls/XRTest.webidl, components/script/dom/xrtest.rs, components/script/dom/fakexrdevicecontroller.rs, components/script/dom/xrspace.rs, components/script/dom/mod.rs and 3 more
@highfive
Copy link

highfive commented May 30, 2019

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
Copy link
Member

asajeffrey left a comment

LGTM with minor nits.

@@ -294,6 +294,8 @@ mod gen {
webxr: {
#[serde(default)]
enabled: bool,
#[serde(default)]
test: bool,

This comment has been minimized.

@asajeffrey

asajeffrey May 31, 2019

Member

A bit annoying that this does something different than dom.webvr.test which renders to a GLWindow. At some point we'll have to come up with consistent naming.

This comment has been minimized.

@Manishearth

Manishearth May 31, 2019

Author Member

I'm also okay with this rendering to a GLWindow in the future, but I'd have to teach the mock backend about it

}

impl FakeXRDeviceControllerMethods for FakeXRDeviceController {
// check-tidy: no specs after this line

This comment has been minimized.

@asajeffrey

asajeffrey May 31, 2019

Member

No spec links :(

This comment has been minimized.

@Manishearth

Manishearth May 31, 2019

Author Member

there's no spec! there's https://github.com/immersive-web/webxr-test-api , but it's not really a spec. I've linked to it in a bunch of places

@Manishearth Manishearth force-pushed the Manishearth:xrtest branch from c741d98 to ed4fbd0 May 31, 2019
@Manishearth
Copy link
Member Author

Manishearth commented May 31, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2019

📌 Commit 001eb53 has been approved by asajeffrey

@highfive highfive assigned asajeffrey and unassigned jdm May 31, 2019
@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2019

Testing commit 001eb53 with merge 2f3aacd...

bors-servo added a commit that referenced this pull request May 31, 2019
Basic XR Testing support

This adds support for the XRTest and FakeXRDeviceController APIs from https://github.com/immersive-web/webxr-test-api, and plugs them into the `mock` backend of rust-webvr.

Tested with [a modified webxr test page](https://github.com/immersive-web/webxr-test-api)

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/23485)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2019

💔 Test failed - linux-rel-css

@Manishearth Manishearth force-pushed the Manishearth:xrtest branch from 001eb53 to c2d4900 May 31, 2019
@Manishearth
Copy link
Member Author

Manishearth commented May 31, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2019

📌 Commit c2d4900 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2019

Testing commit c2d4900 with merge 7c8a4ec...

bors-servo added a commit that referenced this pull request May 31, 2019
Basic XR Testing support

This adds support for the XRTest and FakeXRDeviceController APIs from https://github.com/immersive-web/webxr-test-api, and plugs them into the `mock` backend of rust-webvr.

Tested with [a modified webxr test page](https://github.com/immersive-web/webxr-test-api)

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/23485)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 31, 2019

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: asajeffrey
Pushing 7c8a4ec to master...

@bors-servo bors-servo merged commit c2d4900 into servo:master May 31, 2019
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request May 31, 2019
2 of 2 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.