mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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 {
|
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<()> {
|
fn SetViews(&self, views: Vec<FakeXRViewInit>) -> Fallible<()> {
|
||||||
if views.len() != 2 {
|
if views.len() != 2 {
|
||||||
return Err(Error::NotSupported);
|
return Err(Error::NotSupported);
|
||||||
|
@ -87,6 +87,7 @@ impl FakeXRDeviceControllerMethods for FakeXRDeviceController {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
|
||||||
fn SetViewerOrigin(&self, origin: &FakeXRRigidTransform) -> Fallible<()> {
|
fn SetViewerOrigin(&self, origin: &FakeXRRigidTransform) -> Fallible<()> {
|
||||||
if origin.position.len() != 4 || origin.orientation.len() != 4 {
|
if origin.position.len() != 4 || origin.orientation.len() != 4 {
|
||||||
return Err(Error::Type("Incorrectly sized array".into()));
|
return Err(Error::Type("Incorrectly sized array".into()));
|
||||||
|
|
|
@ -43,6 +43,7 @@ impl XRTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl XRTestMethods for XRTest {
|
impl XRTestMethods for XRTest {
|
||||||
|
/// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
|
||||||
fn SimulateDeviceConnection(&self, init: &FakeXRDeviceInit) -> Rc<Promise> {
|
fn SimulateDeviceConnection(&self, init: &FakeXRDeviceInit) -> Rc<Promise> {
|
||||||
let p = Promise::new(&self.global());
|
let p = Promise::new(&self.global());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue