Skip to content

Basic XR Testing support - #23485

Merged
bors-servo merged 11 commits into
servo:masterfrom
Manishearth:xrtest
May 31, 2019
Merged

bors-servo merged 11 commits into
servo:masterfrom
Manishearth:xrtest

Conversation

@Manishearth

@Manishearth Manishearth commented May 30, 2019 •

Copy link
Copy Markdown
Member

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
Copy Markdown

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 highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 30, 2019
@highfive

Copy link
Copy Markdown

warning Warning warning

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

@asajeffrey asajeffrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor nits.

#[serde(default)]
enabled: bool,
#[serde(default)]
test: bool,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No spec links :(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member Author

@bors-servo r=asajeffrey

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 001eb53 has been approved by asajeffrey

@highfive highfive assigned asajeffrey and unassigned jdm May 31, 2019
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 31, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 001eb53 with merge 2f3aacd...

bors-servo pushed 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
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 31, 2019
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label May 31, 2019
@Manishearth

Copy link
Copy Markdown
Member Author

@bors-servo r=asajeffrey

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit c2d4900 has been approved by asajeffrey

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 31, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit c2d4900 with merge 7c8a4ec...

bors-servo pushed 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
Copy Markdown
Contributor

☀️ 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
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 31, 2019
@bors-servo bors-servo mentioned this pull request May 31, 2019
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants