mirror of
https://github.com/servo/servo.git
synced 2025-08-31 01:58:23 +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
|
@ -8,21 +8,28 @@
|
|||
'use strict';
|
||||
const test_desc = 'Discover a device using alias, name, or UUID.';
|
||||
|
||||
bluetooth_test(() => getConnectedHealthThermometerDevice()
|
||||
// Chrome will always close the previous chooser in the process of handling
|
||||
// a user gesture for the next request, so these need to be done
|
||||
// sequentially.
|
||||
.then(() => requestDeviceWithTrustedClick({
|
||||
filters: [{services: [health_thermometer.alias]}]
|
||||
}))
|
||||
.then(device => assert_equals(device.constructor.name, 'BluetoothDevice'))
|
||||
.then(() => requestDeviceWithTrustedClick({
|
||||
filters: [{services: [health_thermometer.name]}]
|
||||
}))
|
||||
.then(device => assert_equals(device.constructor.name, 'BluetoothDevice'))
|
||||
.then(() => requestDeviceWithTrustedClick({
|
||||
filters: [{services: [health_thermometer.uuid]}]
|
||||
}))
|
||||
.then(device => assert_equals(device.constructor.name, 'BluetoothDevice')),
|
||||
bluetooth_test(
|
||||
() => getConnectedHealthThermometerDevice()
|
||||
// Chrome will always close the previous chooser in the process of
|
||||
// handling a user gesture for the next request, so these need to
|
||||
// be done sequentially.
|
||||
.then(
|
||||
() => requestDeviceWithTrustedClick(
|
||||
{filters: [{services: [health_thermometer.alias]}]}))
|
||||
.then(
|
||||
device =>
|
||||
assert_equals(device.constructor.name, 'BluetoothDevice'))
|
||||
.then(
|
||||
() => requestDeviceWithTrustedClick(
|
||||
{filters: [{services: [health_thermometer.name]}]}))
|
||||
.then(
|
||||
device =>
|
||||
assert_equals(device.constructor.name, 'BluetoothDevice'))
|
||||
.then(
|
||||
() => requestDeviceWithTrustedClick(
|
||||
{filters: [{services: [health_thermometer.uuid]}]}))
|
||||
.then(
|
||||
device => assert_equals(
|
||||
device.constructor.name, 'BluetoothDevice')),
|
||||
test_desc);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue