mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove uses of promise_rejects.
This commit is contained in:
parent
55f0d5ade1
commit
d1a1f007ed
269 changed files with 337 additions and 891 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,4 +0,0 @@
|
|||
[device-goes-out-of-range.html]
|
||||
[Device goes out of range. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-characteristic.html]
|
||||
[Serial Number String characteristic is blocklisted.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-not-found.html]
|
||||
[Request for absent characteristic. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before getCharacteristic. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[invalid-characteristic-name.html]
|
||||
[Wrong Characteristic name. Reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[service-is-removed.html]
|
||||
[Service is removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-characteristics-with-uuid.html]
|
||||
[Serial Number String characteristic is blocklisted. Should reject with SecurityError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-characteristics.html]
|
||||
[The Device Information service is composed of blocklisted characteristics so we shouldn't find any.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristics-not-found-with-uuid.html]
|
||||
[Request for absent characteristics with UUID. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristics-not-found.html]
|
||||
[Request for absent characteristics. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before-with-uuid.html]
|
||||
[disconnect() called before getCharacteristics. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before getCharacteristics. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[invalid-characteristic-name.html]
|
||||
[Invalid Characteristic name. Reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[service-is-removed-with-uuid.html]
|
||||
[Service is removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[service-is-removed.html]
|
||||
[Service is removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-descriptor.html]
|
||||
[The descriptor is blocklisted.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-is-removed.html]
|
||||
[Characteristic is removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[descriptor-not-found.html]
|
||||
[Request for absent descriptor. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before getDescriptor. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-invalidates-object.html]
|
||||
[Calls on a descriptor after we disconnect and connect again. Should reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[invalid-descriptor-name.html]
|
||||
[Wrong descriptor name. Reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-descriptors-with-uuid.html]
|
||||
[The descriptor is blocklisted. Should reject with SecurityError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-is-removed-with-uuid.html]
|
||||
[Characteristic is removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-is-removed.html]
|
||||
[Characteristic is removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[descriptors-not-found-with-uuid.html]
|
||||
[Request for absent descriptors with UUID. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[descriptors-not-found.html]
|
||||
[Request for absent descriptors with UUID. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before-with-uuid.html]
|
||||
[disconnect() called before getDescriptors. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before getDescriptors. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-invalidates-objects.html]
|
||||
[Calls on descriptors after we disconnect and connect again. Should reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[invalid-descriptor-name.html]
|
||||
[Wrong descriptor name. Reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before getPrimaryService. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-invalidates-object.html]
|
||||
[Calls on a service after we disconnect and connect again. Should reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnected-device.html]
|
||||
[getPrimaryService called before connecting. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[invalid-service-name.html]
|
||||
[Wrong Service name. Reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-permission-absent-service.html]
|
||||
[Request for absent service without permission. Reject with SecurityError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-permission-present-service.html]
|
||||
[Request for present service without permission. Reject with SecurityError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[service-not-found.html]
|
||||
[Request for absent service. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-services-with-uuid.html]
|
||||
[Request for services. Does not return blocklisted service.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before-with-uuid.html]
|
||||
[disconnect() called before getPrimaryServices. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before getPrimaryServices. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-invalidates-objects.html]
|
||||
[Calls on services after we disconnect and connect again. Should reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnected-device-with-uuid.html]
|
||||
[getPrimaryServices called before connecting. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnected-device.html]
|
||||
[getPrimaryServices called before connecting. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[invalid-service-name.html]
|
||||
[Wrong Service name. Reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-permission-absent-service-with-uuid.html]
|
||||
[Request for absent service without permission. Reject with SecurityError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-permission-present-service-with-uuid.html]
|
||||
[Request for present service without permission. Reject with SecurityError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-permission-present-service.html]
|
||||
[Request for present service without permission. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[services-not-found-with-uuid.html]
|
||||
[Request for absent service. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[services-not-found.html]
|
||||
[Request for absent service. Reject with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -2,18 +2,3 @@
|
|||
[Non-number and non-strings]
|
||||
expected: FAIL
|
||||
|
||||
[Make sure attributes don't share a map]
|
||||
expected: FAIL
|
||||
|
||||
[A 32bit *String* alias is invalid.]
|
||||
expected: FAIL
|
||||
|
||||
[Invalid Descriptor name]
|
||||
expected: FAIL
|
||||
|
||||
[A UUID with invalid characters is an invalid UUID.]
|
||||
expected: FAIL
|
||||
|
||||
[A UUID String with uppercase letters is an invalid UUID.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-characteristic.html]
|
||||
[Characteristic with exclude-reads fullfills write and rejects read.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-is-removed.html]
|
||||
[Characteristic gets removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before readValue. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[service-is-removed.html]
|
||||
[Service gets removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-descriptor.html]
|
||||
[Descriptor with exclude-reads fullfills write and rejects read.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-is-removed.html]
|
||||
[Characteristic gets removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[descriptor-is-removed.html]
|
||||
[Descriptor gets removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before readValue. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[service-is-removed.html]
|
||||
[Service gets removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[accept-all-devices-with-filter.html]
|
||||
[Reject with TypeError if filters present and acceptAllDevices is true.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[optional-services-missing.html]
|
||||
[requestDevice called with acceptAllDevices: true and with no optionalServices. Should not get access to any services.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[adapter-not-present.html]
|
||||
[Reject with NotFoundError if the adapter is not present.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[adapter-off.html]
|
||||
[Reject with NotFoundError if the adapter is off.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-service-in-filter.html]
|
||||
[Reject with SecurityError if requesting a blocklisted service.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-service-in-optionalServices.html]
|
||||
[Blocklisted UUID in optionalServices is removed and access not granted.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-service-data-key.html]
|
||||
[Rejects with SecurityError, if a serviceData key is blocklisted.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[empty-filter.html]
|
||||
[A filter must restrict the devices in some way.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[empty-filters-member.html]
|
||||
[An empty |filters| member should result in a TypeError]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[empty-namePrefix.html]
|
||||
[requestDevice with empty namePrefix. Should reject with TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[empty-services-member.html]
|
||||
[Services member must contain at least one service.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[filters-xor-acceptAllDevices.html]
|
||||
[RequestDeviceOptions should have exactly one of 'filters' or 'acceptAllDevices:true'. Reject with TypeError if not.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[max-length-for-device-name-name.html]
|
||||
[A device name longer than 248 must reject.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[max-length-for-device-name-namePrefix.html]
|
||||
[A device name prefix longer than 248 must reject.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-arguments.html]
|
||||
[requestDevice() requires an argument.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-filters-member.html]
|
||||
[RequestDeviceOptions requires a |filters| member.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[unicode-max-length-for-device-name-name.html]
|
||||
[Unicode string in 'name' with utf8 representation greater than 248 bytes must throw TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[unicode-max-length-for-device-name-namePrefix.html]
|
||||
[Unicode string in 'namePrefix' with utf8 representation greater than 248 bytes must throw TypeError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[wrong-manufacturer-data-key.html]
|
||||
[Rejects with TypeError, if a manufacturerData key is not an unsigned short.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[wrong-mask-length.html]
|
||||
[Rejects with TypeError, if mask present, and does not have the same length as dataPrefix.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[wrong-service-data-key.html]
|
||||
[Rejects with TypeError, if a serviceData key does not convert to a valid uuid.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[wrong-service-in-optionalServices-member.html]
|
||||
[Invalid optional service must reject the promise.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[wrong-service-in-services-member.html]
|
||||
[Invalid optional service must reject the promise.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[device-not-found-with-extra-data.html]
|
||||
[Requesting with an extra service/manufacturerData, which is not advertised, rejects with NotFoundError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[device-not-found-with-service-and-manufacturer-data.html]
|
||||
[Requesting with manufacturerData and serviceData in the same filter, will not find a device which does not advertise both.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[filter-does-not-match.html]
|
||||
[If at least one filter member doesn't match the promise must reject.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[name-empty-device-from-name-prefix-filter.html]
|
||||
[An empty name device is not matched by a filter with a namePrefix.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[name-empty-device-from-name-wrong-filter.html]
|
||||
[An empty name device is not matched by a filter with a name.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[name-empty-filter.html]
|
||||
[A named device is not matched by a filter with an empty name.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[name-missing-device-from-name-empty-filter.html]
|
||||
[An unnamed device can not be obtained by empty name filter.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[name-missing-device-from-name-prefix-filter.html]
|
||||
[An unnamed device can not be obtained by namePrefix filter.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[name-missing-device-from-name-wrong-filter.html]
|
||||
[An unnamed device can not be obtained by name filter.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[no-devices.html]
|
||||
[Reject with NotFoundError if there are no devices around.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[not-accept-all-devices-without-filter.html]
|
||||
[Reject with TypeError if `filters` not present and `acceptAllDevices` is false.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[single-filter-two-services-fails.html]
|
||||
[Too-strict filters do prevent matching.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[blocklisted-characteristic.html]
|
||||
[Characteristic with exclude-reads rejects startNotifications.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-does-not-support-notifications.html]
|
||||
[Characteristic doesn't support Notifications. Reject with NotSupportedError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[characteristic-is-removed.html]
|
||||
[Characteristic gets removed. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[device-goes-out-of-range.html]
|
||||
[Device goes out of range. Reject with InvalidStateError.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[disconnect-called-before.html]
|
||||
[disconnect() called before startNotifications. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue