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

@ -10,21 +10,23 @@ const test_desc = 'Returned device should always be the same.';
let devices = [];
let push = device => devices.push(device);
bluetooth_test(() => setUpHealthThermometerAndHeartRateDevices()
.then(() => requestDeviceWithTrustedClick({
filters: [{services: [heart_rate.alias]}]
}))
.then(push)
.then(() => requestDeviceWithTrustedClick({
filters: [{services: [heart_rate.name]}]
}))
.then(push)
.then(() => requestDeviceWithTrustedClick({
filters: [{services: [heart_rate.uuid]}]
}))
.then(push)
.then(() => {
assert_equals(devices[0], devices[1]);
assert_equals(devices[1], devices[2]);
}), test_desc);
bluetooth_test(
() => setUpHealthThermometerAndHeartRateDevices()
.then(
() => requestDeviceWithTrustedClick(
{filters: [{services: [heart_rate.alias]}]}))
.then(push)
.then(
() => requestDeviceWithTrustedClick(
{filters: [{services: [heart_rate.name]}]}))
.then(push)
.then(
() => requestDeviceWithTrustedClick(
{filters: [{services: [heart_rate.uuid]}]}))
.then(push)
.then(() => {
assert_equals(devices[0], devices[1]);
assert_equals(devices[1], devices[2]);
}),
test_desc);
</script>