Update web-platform-tests to revision 74bae78af4b95a2f0ca3a81df9c7fe3143f24bbc

This commit is contained in:
WPT Sync Bot 2019-01-17 20:37:38 -05:00
parent fb95f9df9c
commit 02c1eed999
150 changed files with 2395 additions and 829 deletions

View file

@ -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>