Skip to content

Commit

Permalink
WebBluetooth WPT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zakorgy committed Nov 4, 2016
1 parent e15d54e commit ada0256
Show file tree
Hide file tree
Showing 239 changed files with 4,726 additions and 0 deletions.
972 changes: 972 additions & 0 deletions tests/wpt/mozilla/meta/MANIFEST.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/wpt/mozilla/meta/mozilla/bluetooth/__dir__.ini
@@ -0,0 +1 @@
prefs: [dom.bluetooth.testing.enabled:true]
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before getCharacteristic. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during getCharacteristic. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[get-same-characteristic.html]
type: testharness
[Calls to get the same characteristic should return the same object.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed.html]
type: testharness
[Service is removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[blacklisted-characteristics.html]
type: testharness
[The Device Information service is composed of blacklisted characteristics so we shouldn't find any.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range-with-uuid.html]
type: testharness
[Device goes out of range with UUID. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before-with-uuid.html]
type: testharness
[disconnect() called before getCharacteristics. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before getCharacteristics. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during-with-uuid.html]
type: testharness
[disconnect() called during getCharacteristics. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during getCharacteristics. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[get-same-characteristics.html]
type: testharness
[Calls to get the same characteristics should return the same objects.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed-with-uuid.html]
type: testharness
[Service is removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed.html]
type: testharness
[Service is removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed.html]
type: testharness
[Characteristic is removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before getDescriptor. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during getDescriptor. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[get-same-descriptor.html]
type: testharness
[Calls to get the same descriptor should return the same object.]
expected: FAIL
@@ -0,0 +1,4 @@
[blacklisted-descriptors.html]
type: testharness
[The descriptors are blacklisted.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed-with-uuid.html]
type: testharness
[Characteristic is removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed.html]
type: testharness
[Characteristic is removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range-with-uuid.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before-with-uuid.html]
type: testharness
[disconnect() called before getDescriptors. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before getDescriptors. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during-with-uuid.html]
type: testharness
[disconnect() called during getDescriptors. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during getDescriptors. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[get-same-descriptors.html]
type: testharness
[Calls to get the same descriptor should return the same object.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before getPrimaryService. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during getPrimaryService. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnected-device.html]
type: testharness
[getPrimaryService called before connecting. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[get-same-service.html]
type: testharness
[Calls to get the same service should return the same object.]
expected: FAIL
@@ -0,0 +1,4 @@
[blacklisted-services.html]
type: testharness
[Request for services. Does not return blacklisted service.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range-with-uuid.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before-with-uuid.html]
type: testharness
[disconnect() called before getPrimaryServices. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before getPrimaryServices. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during-with-uuid.html]
type: testharness
[disconnect() called during getPrimaryServices. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during getPrimaryServices. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnected-device-with-uuid.html]
type: testharness
[getPrimaryServices called before connecting. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[disconnected-device.html]
type: testharness
[getPrimaryServices called before connecting. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[get-same-service.html]
type: testharness
[Calls to get the same service should return the same object.]
expected: FAIL
@@ -0,0 +1,4 @@
[no-permission-present-service.html]
type: testharness
[Request for present service without permission. Reject with NotFoundError.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed.html]
type: testharness
[Characteristic gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed.html]
type: testharness
[Service gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed.html]
type: testharness
[Characteristic gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[descriptor-is-removed.html]
type: testharness
[Descriptor gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed.html]
type: testharness
[Service gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[adapter-not-present.html]
type: testharness
[Reject with NotFoundError if the adapter is not present.]
expected: FAIL
@@ -0,0 +1,4 @@
[adapter-off.html]
type: testharness
[Reject with NotFoundError if the adapter is off.]
expected: FAIL
@@ -0,0 +1,4 @@
[max-length-for-name-in-adv-name.html]
type: testharness
[A device name longer than 29 must reject.]
expected: FAIL
@@ -0,0 +1,4 @@
[max-length-for-name-in-adv-namePrefix.html]
type: testharness
[A device name prefix longer than 29 must reject.]
expected: FAIL
@@ -0,0 +1,4 @@
[unicode-max-length-for-name-in-adv-name.html]
type: testharness
[Unicode string with utf8 representation between (29, 248\] bytes in 'name' must throw NotFoundError.]
expected: FAIL
@@ -0,0 +1,4 @@
[unicode-max-length-for-name-in-adv-namePrefix.html]
type: testharness
[Unicode string with utf8 representation between (29, 248\] bytes in 'namePrefix' must throw NotFoundError.]
expected: FAIL
@@ -0,0 +1,4 @@
[correct-uuids.html]
type: testharness
[We should only see UUID's that we've been given permission for.]
expected: FAIL
@@ -0,0 +1,4 @@
[name-empty-device-from-name-empty-filter.html]
type: testharness
[An empty name device can be obtained by empty name filter.]
expected: FAIL
@@ -0,0 +1,4 @@
[name-empty-filter.html]
type: testharness
[A named device is not matched by a filter with an empty name.]
expected: FAIL
@@ -0,0 +1,4 @@
[name-missing-device-from-name-empty-filter.html]
type: testharness
[An unnamed device can not be obtained by empty name filter.]
expected: FAIL
@@ -0,0 +1,4 @@
[same-device.html]
type: testharness
[Returned device should always be the same.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed.html]
type: testharness
[Characteristic gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed.html]
type: testharness
[Service gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[write-updates-value.html]
type: testharness
[A regular write request to a writable characteristic should update value.]
expected: FAIL
@@ -0,0 +1,4 @@
[characteristic-is-removed.html]
type: testharness
[Characteristic gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[descriptor-is-removed.html]
type: testharness
[Descriptor gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[device-goes-out-of-range.html]
type: testharness
[Device goes out of range. Reject with NetworkError.]
expected: FAIL
@@ -0,0 +1,4 @@
[service-is-removed.html]
type: testharness
[Service gets removed. Reject with InvalidStateError.]
expected: FAIL
@@ -0,0 +1,4 @@
[write-updates-value.html]
type: testharness
[A regular write request to a writable descriptor should update value.]
expected: FAIL
@@ -0,0 +1,15 @@
<!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.heart_rate);
return window.navigator.bluetooth.requestDevice({
filters: [{services: [heart_rate.name]}]
})
.then(device => device.gatt.connect())
.then(gattServer => assert_true(gattServer.connected));
}, 'Device will connect');
</script>

0 comments on commit ada0256

Please sign in to comment.