https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 638ae889cf11d1a233720a5ef2d6bfb773c45a16 authored by jgraham on 23 February 2018, 18:35:24 UTC
Revert "Switch external_host to host_ip. (#9258)"
Tip revision: 638ae88
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