Skip to content
Permalink
Browse files

Add 'spec' links

  • Loading branch information...
Manishearth committed May 31, 2019
1 parent d044a79 commit c2d4900c1616cb7acfd21a7ae7a5d1d134c085f9
Showing with 3 additions and 1 deletion.
  1. +2 −1 components/script/dom/fakexrdevicecontroller.rs
  2. +1 −0 components/script/dom/xrtest.rs
@@ -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());

0 comments on commit c2d4900

Please sign in to comment.
You can’t perform that action at this time.