mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +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
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue