https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bd28816174f56938ceea7412ce91add71a1d9917 authored by Henrik Boström on 13 April 2018, 11:02:17 UTC
Fix race in track-stats.https.html test.
Tip revision: bd28816
device-with-name.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>
const test_desc = 'A device with name and no UUIDs nearby. Should be found if ' +
   'acceptAllDevices is true.';
const name = 'LE Device';

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