mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision 74bae78af4b95a2f0ca3a81df9c7fe3143f24bbc
This commit is contained in:
parent
fb95f9df9c
commit
02c1eed999
150 changed files with 2395 additions and 829 deletions
|
@ -7,14 +7,15 @@
|
|||
<script>
|
||||
'use strict';
|
||||
const test_desc = 'Reject with NotFoundError if there is no BT radio present.';
|
||||
const expected = new DOMException('Bluetooth adapter not available.',
|
||||
'NotFoundError');
|
||||
const expected =
|
||||
new DOMException('Bluetooth adapter not available.', 'NotFoundError');
|
||||
|
||||
bluetooth_test(() => navigator.bluetooth.test.simulateCentral({state: 'absent'})
|
||||
.then(() => assert_promise_rejects_with_message(
|
||||
requestDeviceWithTrustedClick({
|
||||
filters: [{services: ['generic_access']}]
|
||||
}),
|
||||
expected, 'Bluetooth adapter is not present.')),
|
||||
bluetooth_test(
|
||||
() => navigator.bluetooth.test.simulateCentral({state: 'absent'})
|
||||
.then(
|
||||
() => assert_promise_rejects_with_message(
|
||||
requestDeviceWithTrustedClick(
|
||||
{filters: [{services: ['generic_access']}]}),
|
||||
expected, 'Bluetooth adapter is not present.')),
|
||||
test_desc);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue