Skip to content

Commit

Permalink
Fix /_mozilla/bluetooth/interfaces.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Apr 9, 2018
1 parent e460b4a commit 3076151
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 40 deletions.
4 changes: 2 additions & 2 deletions tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -59461,7 +59461,7 @@
"testharness"
],
"bluetooth/interfaces.html": [
"4d97da8dc427bd500dafd684e08da59a9a0d35c4",
"4558862f81e4a5a3a3d16f7156c5cff63f4b7073",
"testharness"
],
"bluetooth/readValue/characteristic/blocklisted-characteristic.html": [
Expand Down Expand Up @@ -61533,7 +61533,7 @@
"support"
],
"css/get-computed-style-for-url.html": [
"2e90c0abd6c83bb11113f39a557a4c1c1c24364b",
"cb3b467160026d20c4e283c12ded20fe2d025f88",
"testharness"
],
"css/green.png": [
Expand Down
30 changes: 0 additions & 30 deletions tests/wpt/mozilla/meta/bluetooth/interfaces.html.ini
@@ -1,11 +1,5 @@
[interfaces.html]
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()]
expected: FAIL

Expand Down Expand Up @@ -48,12 +42,6 @@
[Bluetooth interface: window.navigator.bluetooth must inherit property "onserviceremoved" with the proper type (8)]
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]
expected: FAIL

Expand All @@ -75,12 +63,6 @@
[ValueEvent interface: attribute value]
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()]
expected: FAIL
Expand Down Expand Up @@ -144,12 +126,6 @@
[BluetoothRemoteGATTServer interface: operation getPrimaryServices(BluetoothServiceUUID)]
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)]
expected: FAIL
Expand All @@ -165,12 +141,6 @@
[BluetoothRemoteGATTService interface: attribute oncharacteristicvaluechanged]
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)]
expected: FAIL
Expand Down
24 changes: 16 additions & 8 deletions tests/wpt/mozilla/tests/bluetooth/interfaces.html
Expand Up @@ -27,6 +27,18 @@ <h1>WebBluetooth IDL tests</h1>

interface ArrayBufferView {
};

dictionary PermissionDescriptor {
required PermissionName name;
};

interface PermissionStatus {
};

dictionary EventInit {
boolean bubbles = false;
boolean cancelable = false;
};
</script>
<script id='webbluetooth_idl' type="text/plain">
dictionary BluetoothDataFilterInit {
Expand All @@ -49,7 +61,7 @@ <h1>WebBluetooth IDL tests</h1>
boolean acceptAllDevices = false;
};

interface Bluetooth {
interface Bluetooth : EventTarget {
[SecureContext]
Promise<boolean> getAvailability();
[SecureContext]
Expand All @@ -59,7 +71,6 @@ <h1>WebBluetooth IDL tests</h1>
[SecureContext]
Promise<BluetoothDevice> requestDevice(optional RequestDeviceOptions options);
};
Bluetooth implements EventTarget;
Bluetooth implements BluetoothDeviceEventHandlers;
Bluetooth implements CharacteristicEventHandlers;
Bluetooth implements ServiceEventHandlers;
Expand Down Expand Up @@ -95,7 +106,7 @@ <h1>WebBluetooth IDL tests</h1>
any value = null;
};

interface BluetoothDevice {
interface BluetoothDevice : EventTarget {
readonly attribute DOMString id;
readonly attribute DOMString? name;
readonly attribute BluetoothRemoteGATTServer? gatt;
Expand All @@ -104,7 +115,6 @@ <h1>WebBluetooth IDL tests</h1>
void unwatchAdvertisements();
readonly attribute boolean watchingAdvertisements;
};
BluetoothDevice implements EventTarget;
BluetoothDevice implements BluetoothDeviceEventHandlers;
BluetoothDevice implements CharacteristicEventHandlers;
BluetoothDevice implements ServiceEventHandlers;
Expand Down Expand Up @@ -147,7 +157,7 @@ <h1>WebBluetooth IDL tests</h1>
getPrimaryServices(optional BluetoothServiceUUID service);
};

interface BluetoothRemoteGATTService {
interface BluetoothRemoteGATTService : EventTarget {
readonly attribute BluetoothDevice device;
readonly attribute UUID uuid;
readonly attribute boolean isPrimary;
Expand All @@ -160,11 +170,10 @@ <h1>WebBluetooth IDL tests</h1>
Promise<sequence<BluetoothRemoteGATTService>>
getIncludedServices(optional BluetoothServiceUUID service);
};
BluetoothRemoteGATTService implements EventTarget;
BluetoothRemoteGATTService implements CharacteristicEventHandlers;
BluetoothRemoteGATTService implements ServiceEventHandlers;

interface BluetoothRemoteGATTCharacteristic {
interface BluetoothRemoteGATTCharacteristic : EventTarget {
readonly attribute BluetoothRemoteGATTService service;
readonly attribute UUID uuid;
readonly attribute BluetoothCharacteristicProperties properties;
Expand All @@ -177,7 +186,6 @@ <h1>WebBluetooth IDL tests</h1>
Promise<BluetoothRemoteGATTCharacteristic> startNotifications();
Promise<BluetoothRemoteGATTCharacteristic> stopNotifications();
};
BluetoothRemoteGATTCharacteristic implements EventTarget;
BluetoothRemoteGATTCharacteristic implements CharacteristicEventHandlers;

interface BluetoothCharacteristicProperties {
Expand Down

0 comments on commit 3076151

Please sign in to comment.