Removing uuids field from BluetoothDevice with the related test cases.

This commit is contained in:
zakorgyula 2016-10-07 10:58:52 +02:00
parent b72dcf326b
commit 2b4829b89a
4 changed files with 5 additions and 30 deletions

View file

@ -8,9 +8,13 @@
interface BluetoothDevice { interface BluetoothDevice {
readonly attribute DOMString id; readonly attribute DOMString id;
readonly attribute DOMString? name; readonly attribute DOMString? name;
// TODO: remove this after BluetoothAdvertisingEvent implemented.
readonly attribute BluetoothAdvertisingData adData; readonly attribute BluetoothAdvertisingData adData;
readonly attribute BluetoothRemoteGATTServer gatt; readonly attribute BluetoothRemoteGATTServer gatt;
// readonly attribute FrozenArray[] uuids;
// Promise<void> watchAdvertisements();
// void unwatchAdvertisements();
// readonly attribute boolean watchingAdvertisements;
}; };
// BluetoothDevice implements EventTarget; // BluetoothDevice implements EventTarget;

View file

@ -7436,12 +7436,6 @@
"url": "/_mozilla/mozilla/bluetooth/requestDevice/canonicalizeFilter/wrong-service-in-services-member.html" "url": "/_mozilla/mozilla/bluetooth/requestDevice/canonicalizeFilter/wrong-service-in-services-member.html"
} }
], ],
"mozilla/bluetooth/requestDevice/correct-uuids.html": [
{
"path": "mozilla/bluetooth/requestDevice/correct-uuids.html",
"url": "/_mozilla/mozilla/bluetooth/requestDevice/correct-uuids.html"
}
],
"mozilla/bluetooth/requestDevice/discovery-succeeds.html": [ "mozilla/bluetooth/requestDevice/discovery-succeeds.html": [
{ {
"path": "mozilla/bluetooth/requestDevice/discovery-succeeds.html", "path": "mozilla/bluetooth/requestDevice/discovery-succeeds.html",

View file

@ -1,4 +0,0 @@
[correct-uuids.html]
type: testharness
[We should only see UUID's that we've been given permission for.]
expected: FAIL

View file

@ -1,19 +0,0 @@
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/bluetooth/bluetooth-helpers.js"></script>
<script>
'use strict';
promise_test(() => {
window.testRunner.setBluetoothMockDataSet(adapter_type.glucose_heart_rate);
return window.navigator.bluetooth.requestDevice({
filters: [{services: [glucose.name]}],
optionalServices: [tx_power.name]
})
.then(device => {
assert_equals(device.uuids.length, 2);
assert_in_array(glucose.uuid, device.uuids);
assert_in_array(tx_power.uuid, device.uuids);
});
}, 'We should only see UUID\'s that we\'ve been given permission for.');
</script>