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,17 +8,21 @@
'use strict';
const test_desc = 'requestDevice calls do not consume user gestures.';
bluetooth_test(() => setUpHealthThermometerAndHeartRateDevices()
.then(() => callWithTrustedClick(() => {
let first = navigator.bluetooth.requestDevice({
filters: [{services: ['heart_rate']}]});
let second = navigator.bluetooth.requestDevice({
filters: [{services: ['heart_rate']}]});
return Promise.all([
first.then(device => assert_equals(
device.constructor.name, 'BluetoothDevice')),
second.then(device => assert_equals(
device.constructor.name, 'BluetoothDevice')),
]);
})), test_desc);
bluetooth_test(
() => setUpHealthThermometerAndHeartRateDevices().then(
() => callWithTrustedClick(() => {
let first = navigator.bluetooth.requestDevice(
{filters: [{services: ['heart_rate']}]});
let second = navigator.bluetooth.requestDevice(
{filters: [{services: ['heart_rate']}]});
return Promise.all([
first.then(
device =>
assert_equals(device.constructor.name, 'BluetoothDevice')),
second.then(
device =>
assert_equals(device.constructor.name, 'BluetoothDevice')),
]);
})),
test_desc);
</script>