blob: 41f851adc5ee046eab4a98be19ff8f4ebea5da27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/bluetooth/resources/bluetooth-test.js
// META: script=/bluetooth/resources/bluetooth-fake-devices.js
'use strict';
const test_desc = 'Manufacturer data company identifier must be unique.';
const expected = new TypeError();
let filters = [{
manufacturerData: [
{
companyIdentifier: 0x0001,
},
{
companyIdentifier: 0x0001,
}
]
}];
bluetooth_test(
(t) => promise_rejects_js(
t, TypeError, requestDeviceWithTrustedClick({filters})),
test_desc);
|