refactor Connect/Disconnect calls

This commit is contained in:
Zakor Gyula 2016-11-29 08:45:46 +01:00
parent 6efea399ed
commit 6e02cb2eb9
24 changed files with 649 additions and 33 deletions

View file

@ -6794,6 +6794,12 @@
"url": "/_mozilla/mozilla/bluetooth/disconnect/disconnect-twice-in-a-row.html"
}
],
"mozilla/bluetooth/disconnect/event-is-fired.html": [
{
"path": "mozilla/bluetooth/disconnect/event-is-fired.html",
"url": "/_mozilla/mozilla/bluetooth/disconnect/event-is-fired.html"
}
],
"mozilla/bluetooth/getCharacteristic/blocklisted-characteristic.html": [
{
"path": "mozilla/bluetooth/getCharacteristic/blocklisted-characteristic.html",
@ -6830,6 +6836,18 @@
"url": "/_mozilla/mozilla/bluetooth/getCharacteristic/disconnect-called-during.html"
}
],
"mozilla/bluetooth/getCharacteristic/disconnect-invalidates-object.html": [
{
"path": "mozilla/bluetooth/getCharacteristic/disconnect-invalidates-object.html",
"url": "/_mozilla/mozilla/bluetooth/getCharacteristic/disconnect-invalidates-object.html"
}
],
"mozilla/bluetooth/getCharacteristic/get-different-characteristic-after-reconnection.html": [
{
"path": "mozilla/bluetooth/getCharacteristic/get-different-characteristic-after-reconnection.html",
"url": "/_mozilla/mozilla/bluetooth/getCharacteristic/get-different-characteristic-after-reconnection.html"
}
],
"mozilla/bluetooth/getCharacteristic/get-same-characteristic.html": [
{
"path": "mozilla/bluetooth/getCharacteristic/get-same-characteristic.html",
@ -6926,6 +6944,18 @@
"url": "/_mozilla/mozilla/bluetooth/getCharacteristics/disconnect-called-during.html"
}
],
"mozilla/bluetooth/getCharacteristics/disconnect-invalidates-objects.html": [
{
"path": "mozilla/bluetooth/getCharacteristics/disconnect-invalidates-objects.html",
"url": "/_mozilla/mozilla/bluetooth/getCharacteristics/disconnect-invalidates-objects.html"
}
],
"mozilla/bluetooth/getCharacteristics/get-different-characteristics-after-reconnection.html": [
{
"path": "mozilla/bluetooth/getCharacteristics/get-different-characteristics-after-reconnection.html",
"url": "/_mozilla/mozilla/bluetooth/getCharacteristics/get-different-characteristics-after-reconnection.html"
}
],
"mozilla/bluetooth/getCharacteristics/get-same-characteristics.html": [
{
"path": "mozilla/bluetooth/getCharacteristics/get-same-characteristics.html",
@ -6992,6 +7022,18 @@
"url": "/_mozilla/mozilla/bluetooth/getDescriptor/disconnect-called-during.html"
}
],
"mozilla/bluetooth/getDescriptor/disconnect-invalidates-object.html": [
{
"path": "mozilla/bluetooth/getDescriptor/disconnect-invalidates-object.html",
"url": "/_mozilla/mozilla/bluetooth/getDescriptor/disconnect-invalidates-object.html"
}
],
"mozilla/bluetooth/getDescriptor/get-different-descriptor-after-reconnection.html": [
{
"path": "mozilla/bluetooth/getDescriptor/get-different-descriptor-after-reconnection.html",
"url": "/_mozilla/mozilla/bluetooth/getDescriptor/get-different-descriptor-after-reconnection.html"
}
],
"mozilla/bluetooth/getDescriptor/get-same-descriptor.html": [
{
"path": "mozilla/bluetooth/getDescriptor/get-same-descriptor.html",
@ -7094,6 +7136,18 @@
"url": "/_mozilla/mozilla/bluetooth/getDescriptors/disconnect-called-during.html"
}
],
"mozilla/bluetooth/getDescriptors/disconnect-invalidates-objects.html": [
{
"path": "mozilla/bluetooth/getDescriptors/disconnect-invalidates-objects.html",
"url": "/_mozilla/mozilla/bluetooth/getDescriptors/disconnect-invalidates-objects.html"
}
],
"mozilla/bluetooth/getDescriptors/get-different-descriptors-after-reconnection.html": [
{
"path": "mozilla/bluetooth/getDescriptors/get-different-descriptors-after-reconnection.html",
"url": "/_mozilla/mozilla/bluetooth/getDescriptors/get-different-descriptors-after-reconnection.html"
}
],
"mozilla/bluetooth/getDescriptors/get-same-descriptors.html": [
{
"path": "mozilla/bluetooth/getDescriptors/get-same-descriptors.html",
@ -7124,12 +7178,24 @@
"url": "/_mozilla/mozilla/bluetooth/getPrimaryService/disconnect-called-during.html"
}
],
"mozilla/bluetooth/getPrimaryService/disconnect-invalidates-object.html": [
{
"path": "mozilla/bluetooth/getPrimaryService/disconnect-invalidates-object.html",
"url": "/_mozilla/mozilla/bluetooth/getPrimaryService/disconnect-invalidates-object.html"
}
],
"mozilla/bluetooth/getPrimaryService/disconnected-device.html": [
{
"path": "mozilla/bluetooth/getPrimaryService/disconnected-device.html",
"url": "/_mozilla/mozilla/bluetooth/getPrimaryService/disconnected-device.html"
}
],
"mozilla/bluetooth/getPrimaryService/get-different-service-after-reconnection.html": [
{
"path": "mozilla/bluetooth/getPrimaryService/get-different-service-after-reconnection.html",
"url": "/_mozilla/mozilla/bluetooth/getPrimaryService/get-different-service-after-reconnection.html"
}
],
"mozilla/bluetooth/getPrimaryService/get-same-service.html": [
{
"path": "mozilla/bluetooth/getPrimaryService/get-same-service.html",
@ -7220,6 +7286,12 @@
"url": "/_mozilla/mozilla/bluetooth/getPrimaryServices/disconnect-called-during.html"
}
],
"mozilla/bluetooth/getPrimaryServices/disconnect-invalidates-objects.html": [
{
"path": "mozilla/bluetooth/getPrimaryServices/disconnect-invalidates-objects.html",
"url": "/_mozilla/mozilla/bluetooth/getPrimaryServices/disconnect-invalidates-objects.html"
}
],
"mozilla/bluetooth/getPrimaryServices/disconnected-device-with-uuid.html": [
{
"path": "mozilla/bluetooth/getPrimaryServices/disconnected-device-with-uuid.html",
@ -7232,6 +7304,12 @@
"url": "/_mozilla/mozilla/bluetooth/getPrimaryServices/disconnected-device.html"
}
],
"mozilla/bluetooth/getPrimaryServices/get-different-services-after-reconnection.html": [
{
"path": "mozilla/bluetooth/getPrimaryServices/get-different-services-after-reconnection.html",
"url": "/_mozilla/mozilla/bluetooth/getPrimaryServices/get-different-services-after-reconnection.html"
}
],
"mozilla/bluetooth/getPrimaryServices/get-same-service.html": [
{
"path": "mozilla/bluetooth/getPrimaryServices/get-same-service.html",

View file

@ -0,0 +1,5 @@
[disconnect-invalidates-object.html]
type: testharness
[Calls on a characteristic after we disconnect and connect again. Should reject with InvalidStateError.]
expected: FAIL

View file

@ -0,0 +1,5 @@
[disconnect-invalidates-objects.html]
type: testharness
[Calls on characteristics after we disconnect and connect again. Should reject with InvalidStateError.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before stopNotifications. Reject with InvalidStateError.]
expected: FAIL