aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-05-30 18:55:04 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-05-30 19:04:08 -0700
commitc2d4900c1616cb7acfd21a7ae7a5d1d134c085f9 (patch)
tree4af1a8dd428b6ab856c9a45d78d6e48492217e02 /components/script
parentd044a792f1cc664492f646f9c6eddf427d82413e (diff)
downloadservo-c2d4900c1616cb7acfd21a7ae7a5d1d134c085f9.tar.gz
servo-c2d4900c1616cb7acfd21a7ae7a5d1d134c085f9.zip
Add 'spec' links
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());