mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Replace AdvertisingData with AdvertisingEvent
This commit is contained in:
parent
a2391162a1
commit
748b78a6bf
12 changed files with 237 additions and 99 deletions
|
@ -6734,6 +6734,12 @@
|
|||
"url": "/_mozilla/mozilla/binding_keyword.html"
|
||||
}
|
||||
],
|
||||
"mozilla/bluetooth/advertisingEvent/watchAdvertisements-succeeds.html": [
|
||||
{
|
||||
"path": "mozilla/bluetooth/advertisingEvent/watchAdvertisements-succeeds.html",
|
||||
"url": "/_mozilla/mozilla/bluetooth/advertisingEvent/watchAdvertisements-succeeds.html"
|
||||
}
|
||||
],
|
||||
"mozilla/bluetooth/connect/connection-succeeds.html": [
|
||||
{
|
||||
"path": "mozilla/bluetooth/connect/connection-succeeds.html",
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[watchAdvertisements-succeeds.html]
|
||||
type: testharness
|
||||
[watchAdvertisements should succeed.]
|
||||
expected: FAIL
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/_mozilla/mozilla/bluetooth/bluetooth-helpers.js"></script>
|
||||
<script>
|
||||
'use strict';
|
||||
promise_test(() => {
|
||||
window.testRunner.setBluetoothMockDataSet(adapter_type.heart_rate);
|
||||
return window.navigator.bluetooth.requestDevice({
|
||||
filters: [{services: [heart_rate.name]}]
|
||||
})
|
||||
.then(device => device.watchAdvertisements());
|
||||
}, 'watchAdvertisements should succeed.');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue