diff options
author | Attila Dusnoki <dati91@gmail.com> | 2016-11-08 13:22:33 +0100 |
---|---|---|
committer | Attila Dusnoki <dati91@gmail.com> | 2016-11-08 13:27:56 +0100 |
commit | e7e7c74c9ee1a296683e01b97336ef9bdf7f009c (patch) | |
tree | ec5c711cc61bd94f3de4c1394b97ae1174eb5d95 /components/script/dom/testrunner.rs | |
parent | 4a7ea7242935a9bea9ac82f82dd22b5ac8aad673 (diff) | |
download | servo-e7e7c74c9ee1a296683e01b97336ef9bdf7f009c.tar.gz servo-e7e7c74c9ee1a296683e01b97336ef9bdf7f009c.zip |
Webbluetooth Async behaviour
Diffstat (limited to 'components/script/dom/testrunner.rs')
-rw-r--r-- | components/script/dom/testrunner.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/testrunner.rs b/components/script/dom/testrunner.rs index f96ab6dbf65..0bae004c90c 100644 --- a/components/script/dom/testrunner.rs +++ b/components/script/dom/testrunner.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use bluetooth_traits::BluetoothMethodMsg; +use bluetooth_traits::BluetoothRequest; use dom::bindings::codegen::Bindings::TestRunnerBinding; use dom::bindings::codegen::Bindings::TestRunnerBinding::TestRunnerMethods; use dom::bindings::error::{Error, ErrorResult}; @@ -31,7 +31,7 @@ impl TestRunner { TestRunnerBinding::Wrap) } - fn get_bluetooth_thread(&self) -> IpcSender<BluetoothMethodMsg> { + fn get_bluetooth_thread(&self) -> IpcSender<BluetoothRequest> { self.global().as_window().bluetooth_thread() } } @@ -40,7 +40,7 @@ impl TestRunnerMethods for TestRunner { // https://webbluetoothcg.github.io/web-bluetooth/tests#setBluetoothMockDataSet fn SetBluetoothMockDataSet(&self, dataSetName: DOMString) -> ErrorResult { let (sender, receiver) = ipc::channel().unwrap(); - self.get_bluetooth_thread().send(BluetoothMethodMsg::Test(String::from(dataSetName), sender)).unwrap(); + self.get_bluetooth_thread().send(BluetoothRequest::Test(String::from(dataSetName), sender)).unwrap(); match receiver.recv().unwrap().into() { Ok(()) => { Ok(()) |