mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add 'spec' links
This commit is contained in:
parent
d044a792f1
commit
c2d4900c16
2 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,7 @@ impl FakeXRDeviceController {
|
|||
}
|
||||
|
||||
impl FakeXRDeviceControllerMethods for FakeXRDeviceController {
|
||||
// check-tidy: no specs after this line
|
||||
/// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
|
||||
fn SetViews(&self, views: Vec<FakeXRViewInit>) -> Fallible<()> {
|
||||
if views.len() != 2 {
|
||||
return Err(Error::NotSupported);
|
||||
|
@ -87,6 +87,7 @@ impl FakeXRDeviceControllerMethods for FakeXRDeviceController {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
/// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
|
||||
fn SetViewerOrigin(&self, origin: &FakeXRRigidTransform) -> Fallible<()> {
|
||||
if origin.position.len() != 4 || origin.orientation.len() != 4 {
|
||||
return Err(Error::Type("Incorrectly sized array".into()));
|
||||
|
|
|
@ -43,6 +43,7 @@ impl XRTest {
|
|||
}
|
||||
|
||||
impl XRTestMethods for XRTest {
|
||||
/// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
|
||||
fn SimulateDeviceConnection(&self, init: &FakeXRDeviceInit) -> Rc<Promise> {
|
||||
let p = Promise::new(&self.global());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue