Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptor/descriptor-not-found.html

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Implement WebBluetooth getDescriptor[s] Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
5 <script>
6 'use strict';
7 promise_test(() => {
8 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter')
9 .then(() => requestDeviceWithKeyDown({
10 filters: [{services: ['health_thermometer']}]}))
11 .then(device => device.gatt.connect())
12 .then(gattServer => gattServer.getPrimaryService('health_thermometer'))
13 .then(service => service.getCharacteristic('measurement_interval'))
14 .then(characteristic => {
15 assert_promise_rejects_with_message(
16 // Valid Range is not present in this characteristic
17 characteristic.getDescriptor(2906),
18 new DOMException(
19 'No Descriptors with specified UUID found in Characteristic.',
20 'NotFoundError'));
21 })
22 }, 'Request for absent descriptor. Reject with NotFoundError.');
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698