https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a72a06f7e3d919f8d4f08cb3171291cf6482fd85 authored by Simon Pieters on 08 June 2018, 15:54:45 UTC
HTML: add a test for :heading
Tip revision: a72a06f
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