Add 'spec' links

This commit is contained in:
Manish Goregaokar 2019-05-30 18:55:04 -07:00
parent d044a792f1
commit c2d4900c16
2 changed files with 3 additions and 1 deletions

View file

@ -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()));

View file

@ -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());