aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/fakexrdevicecontroller.rs3
-rw-r--r--components/script/dom/xrtest.rs1
2 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/fakexrdevicecontroller.rs b/components/script/dom/fakexrdevicecontroller.rs
index bd33d34aea1..3d051283155 100644
--- a/components/script/dom/fakexrdevicecontroller.rs
+++ b/components/script/dom/fakexrdevicecontroller.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()));
diff --git a/components/script/dom/xrtest.rs b/components/script/dom/xrtest.rs
index 3484badf1a7..07fac9d6a89 100644
--- a/components/script/dom/xrtest.rs
+++ b/components/script/dom/xrtest.rs
@@ -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());