https://github.com/web-platform-tests/wpt
Raw File
Tip revision: fe09e1e121e850ee1cf1c7f67333ad92e3904d78 authored by Morten Stenshorne on 26 March 2018, 14:00:45 UTC
[css-flexbox] Resolve min-width:auto on table item to min preferred size.
Tip revision: fe09e1e
gen-disconnect-called-before.https.html
<!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py -->
<!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 = 'disconnect() called before getPrimaryServices. ' +
    'Reject with NetworkError.';
const expected = new DOMException(
    'GATT Server is disconnected. Cannot retrieve services. (Re)connect ' +
    'first with `device.gatt.connect`.',
    'NetworkError');
let device;

bluetooth_test(() => getHealthThermometerDevice({
      filters: [{services: ['health_thermometer']}],
      optionalServices: ['generic_access']
    })
    .then(_ => ({device} = _))
    .then(() => device.gatt.disconnect())
    .then(() => assert_promise_rejects_with_message(
        device.gatt.getPrimaryServices(),
        expected)),
    test_desc);

</script>
back to top