Skip to main content

XRTestMethods

pub trait XRTestMethods<D: DomTypes> {
    // Required methods
    fn SimulateDeviceConnection(
        &self,
        realm: &mut CurrentRealm<'_>,
        init: &FakeXRDeviceInit,
    ) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
    fn SimulateUserActivation(
        &self,
        cx: &mut JSContext,
        f: RootedCallback<Function<D>>,
    );
    fn DisconnectAllDevices(
        &self,
        realm: &mut CurrentRealm<'_>,
    ) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
}

Required Methods§

Implementors§