25 lines
560 B
JavaScript
25 lines
560 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
// META: timeout=long
|
|
|
|
'use strict';
|
|
|
|
// https://webbluetoothcg.github.io/web-bluetooth/
|
|
|
|
idl_test(
|
|
['web-bluetooth'],
|
|
['dom', 'html', 'permissions'],
|
|
idl_array => {
|
|
try {
|
|
self.event = new BluetoothAdvertisingEvent('type');
|
|
} catch(e) {
|
|
// Surfaced when 'event' is undefined below.
|
|
}
|
|
|
|
idl_array.add_objects({
|
|
Navigator: ['navigator'],
|
|
Bluetooth: ['navigator.bluetooth'],
|
|
BluetoothAdvertisingEvent: ['event'],
|
|
});
|
|
}
|
|
);
|