https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e74b1a03953ecedcbf31d495be3f2bd667c1de6e authored by Anthony Ramine on 07 April 2018, 11:47:48 UTC
Avoid async/await in /webstorage/idlharness.html
Tip revision: e74b1a0
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