https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 32b86b82958c2f48931274b26840a1a4a45a8857 authored by Adam Rice on 20 March 2018, 12:30:43 UTC
Correctly reject in-progress body methods with AbortError
Tip revision: 32b86b8
name-empty-device-from-name-empty-filter.https.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/bluetooth/resources/bluetooth-helpers.js"></script>
<script>
'use strict';
const test_desc = 'An empty name device can be obtained by empty name filter.'

bluetooth_test(() => setUpPreconnectedDevice({name: ''})
    .then(() => requestDeviceWithTrustedClick({filters: [{name: ''}]}))
    .then(device => assert_equals(device.name, '')),
    test_desc);
</script>
back to top