Fix /_mozilla/bluetooth/interfaces.html

This commit is contained in:
Anthony Ramine 2018-04-09 10:20:12 +02:00
parent e460b4ab8a
commit 3076151a1f
3 changed files with 18 additions and 40 deletions

View file

@ -59461,7 +59461,7 @@
"testharness" "testharness"
], ],
"bluetooth/interfaces.html": [ "bluetooth/interfaces.html": [
"4d97da8dc427bd500dafd684e08da59a9a0d35c4", "4558862f81e4a5a3a3d16f7156c5cff63f4b7073",
"testharness" "testharness"
], ],
"bluetooth/readValue/characteristic/blocklisted-characteristic.html": [ "bluetooth/readValue/characteristic/blocklisted-characteristic.html": [
@ -61533,7 +61533,7 @@
"support" "support"
], ],
"css/get-computed-style-for-url.html": [ "css/get-computed-style-for-url.html": [
"2e90c0abd6c83bb11113f39a557a4c1c1c24364b", "cb3b467160026d20c4e283c12ded20fe2d025f88",
"testharness" "testharness"
], ],
"css/green.png": [ "css/green.png": [

View file

@ -1,11 +1,5 @@
[interfaces.html] [interfaces.html]
type: testharness type: testharness
[Bluetooth interface: existence and properties of interface object]
expected: FAIL
[Bluetooth interface: existence and properties of interface prototype object]
expected: FAIL
[Bluetooth interface: operation getAvailability()] [Bluetooth interface: operation getAvailability()]
expected: FAIL expected: FAIL
@ -48,12 +42,6 @@
[Bluetooth interface: window.navigator.bluetooth must inherit property "onserviceremoved" with the proper type (8)] [Bluetooth interface: window.navigator.bluetooth must inherit property "onserviceremoved" with the proper type (8)]
expected: FAIL expected: FAIL
[BluetoothPermissionResult interface: existence and properties of interface object]
expected: FAIL
[BluetoothPermissionResult interface: existence and properties of interface prototype object]
expected: FAIL
[BluetoothPermissionResult interface: attribute devices] [BluetoothPermissionResult interface: attribute devices]
expected: FAIL expected: FAIL
@ -75,12 +63,6 @@
[ValueEvent interface: attribute value] [ValueEvent interface: attribute value]
expected: FAIL expected: FAIL
[BluetoothDevice interface: existence and properties of interface object]
expected: FAIL
[BluetoothDevice interface: existence and properties of interface prototype object]
expected: FAIL
[BluetoothDevice interface: operation watchAdvertisements()] [BluetoothDevice interface: operation watchAdvertisements()]
expected: FAIL expected: FAIL
@ -144,12 +126,6 @@
[BluetoothRemoteGATTServer interface: operation getPrimaryServices(BluetoothServiceUUID)] [BluetoothRemoteGATTServer interface: operation getPrimaryServices(BluetoothServiceUUID)]
expected: FAIL expected: FAIL
[BluetoothRemoteGATTService interface: existence and properties of interface object]
expected: FAIL
[BluetoothRemoteGATTService interface: existence and properties of interface prototype object]
expected: FAIL
[BluetoothRemoteGATTService interface: operation getCharacteristic(BluetoothCharacteristicUUID)] [BluetoothRemoteGATTService interface: operation getCharacteristic(BluetoothCharacteristicUUID)]
expected: FAIL expected: FAIL
@ -165,12 +141,6 @@
[BluetoothRemoteGATTService interface: attribute oncharacteristicvaluechanged] [BluetoothRemoteGATTService interface: attribute oncharacteristicvaluechanged]
expected: FAIL expected: FAIL
[BluetoothRemoteGATTCharacteristic interface: existence and properties of interface object]
expected: FAIL
[BluetoothRemoteGATTCharacteristic interface: existence and properties of interface prototype object]
expected: FAIL
[BluetoothRemoteGATTCharacteristic interface: operation getDescriptor(BluetoothDescriptorUUID)] [BluetoothRemoteGATTCharacteristic interface: operation getDescriptor(BluetoothDescriptorUUID)]
expected: FAIL expected: FAIL

View file

@ -27,6 +27,18 @@
interface ArrayBufferView { interface ArrayBufferView {
}; };
dictionary PermissionDescriptor {
required PermissionName name;
};
interface PermissionStatus {
};
dictionary EventInit {
boolean bubbles = false;
boolean cancelable = false;
};
</script> </script>
<script id='webbluetooth_idl' type="text/plain"> <script id='webbluetooth_idl' type="text/plain">
dictionary BluetoothDataFilterInit { dictionary BluetoothDataFilterInit {
@ -49,7 +61,7 @@ dictionary RequestDeviceOptions {
boolean acceptAllDevices = false; boolean acceptAllDevices = false;
}; };
interface Bluetooth { interface Bluetooth : EventTarget {
[SecureContext] [SecureContext]
Promise<boolean> getAvailability(); Promise<boolean> getAvailability();
[SecureContext] [SecureContext]
@ -59,7 +71,6 @@ interface Bluetooth {
[SecureContext] [SecureContext]
Promise<BluetoothDevice> requestDevice(optional RequestDeviceOptions options); Promise<BluetoothDevice> requestDevice(optional RequestDeviceOptions options);
}; };
Bluetooth implements EventTarget;
Bluetooth implements BluetoothDeviceEventHandlers; Bluetooth implements BluetoothDeviceEventHandlers;
Bluetooth implements CharacteristicEventHandlers; Bluetooth implements CharacteristicEventHandlers;
Bluetooth implements ServiceEventHandlers; Bluetooth implements ServiceEventHandlers;
@ -95,7 +106,7 @@ dictionary ValueEventInit : EventInit {
any value = null; any value = null;
}; };
interface BluetoothDevice { interface BluetoothDevice : EventTarget {
readonly attribute DOMString id; readonly attribute DOMString id;
readonly attribute DOMString? name; readonly attribute DOMString? name;
readonly attribute BluetoothRemoteGATTServer? gatt; readonly attribute BluetoothRemoteGATTServer? gatt;
@ -104,7 +115,6 @@ interface BluetoothDevice {
void unwatchAdvertisements(); void unwatchAdvertisements();
readonly attribute boolean watchingAdvertisements; readonly attribute boolean watchingAdvertisements;
}; };
BluetoothDevice implements EventTarget;
BluetoothDevice implements BluetoothDeviceEventHandlers; BluetoothDevice implements BluetoothDeviceEventHandlers;
BluetoothDevice implements CharacteristicEventHandlers; BluetoothDevice implements CharacteristicEventHandlers;
BluetoothDevice implements ServiceEventHandlers; BluetoothDevice implements ServiceEventHandlers;
@ -147,7 +157,7 @@ interface BluetoothRemoteGATTServer {
getPrimaryServices(optional BluetoothServiceUUID service); getPrimaryServices(optional BluetoothServiceUUID service);
}; };
interface BluetoothRemoteGATTService { interface BluetoothRemoteGATTService : EventTarget {
readonly attribute BluetoothDevice device; readonly attribute BluetoothDevice device;
readonly attribute UUID uuid; readonly attribute UUID uuid;
readonly attribute boolean isPrimary; readonly attribute boolean isPrimary;
@ -160,11 +170,10 @@ interface BluetoothRemoteGATTService {
Promise<sequence<BluetoothRemoteGATTService>> Promise<sequence<BluetoothRemoteGATTService>>
getIncludedServices(optional BluetoothServiceUUID service); getIncludedServices(optional BluetoothServiceUUID service);
}; };
BluetoothRemoteGATTService implements EventTarget;
BluetoothRemoteGATTService implements CharacteristicEventHandlers; BluetoothRemoteGATTService implements CharacteristicEventHandlers;
BluetoothRemoteGATTService implements ServiceEventHandlers; BluetoothRemoteGATTService implements ServiceEventHandlers;
interface BluetoothRemoteGATTCharacteristic { interface BluetoothRemoteGATTCharacteristic : EventTarget {
readonly attribute BluetoothRemoteGATTService service; readonly attribute BluetoothRemoteGATTService service;
readonly attribute UUID uuid; readonly attribute UUID uuid;
readonly attribute BluetoothCharacteristicProperties properties; readonly attribute BluetoothCharacteristicProperties properties;
@ -177,7 +186,6 @@ interface BluetoothRemoteGATTCharacteristic {
Promise<BluetoothRemoteGATTCharacteristic> startNotifications(); Promise<BluetoothRemoteGATTCharacteristic> startNotifications();
Promise<BluetoothRemoteGATTCharacteristic> stopNotifications(); Promise<BluetoothRemoteGATTCharacteristic> stopNotifications();
}; };
BluetoothRemoteGATTCharacteristic implements EventTarget;
BluetoothRemoteGATTCharacteristic implements CharacteristicEventHandlers; BluetoothRemoteGATTCharacteristic implements CharacteristicEventHandlers;
interface BluetoothCharacteristicProperties { interface BluetoothCharacteristicProperties {