mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support XRTest.disconnectAllDevices()
This commit is contained in:
parent
b0002a003d
commit
3f95d304ec
6 changed files with 55 additions and 11 deletions
|
@ -38,6 +38,10 @@ impl FakeXRDevice {
|
|||
FakeXRDeviceBinding::Wrap,
|
||||
)
|
||||
}
|
||||
|
||||
pub fn disconnect(&self, sender: IpcSender<()>) {
|
||||
let _ = self.sender.send(MockDeviceMsg::Disconnect(sender));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_views(views: &[FakeXRViewInit]) -> Fallible<Views> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue