Add stubs for session start/end

This commit is contained in:
Manish Goregaokar 2019-07-16 16:14:26 -07:00
parent df1f865cb2
commit ffc943fec7
4 changed files with 18 additions and 2 deletions

View file

@ -170,4 +170,12 @@ impl XRTestMethods for XRTest {
// XXXManishearth actually check for activation in XRSession
let _ = f.Call__(vec![], ExceptionHandling::Rethrow);
}
/// https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
fn DisconnectAllDevices(&self) -> Rc<Promise> {
// XXXManishearth implement device disconnection and session ending
let p = Promise::new(&self.global());
p.resolve_native(&());
p
}
}