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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/correct-uuids.html

Issue 2456613002: Remove BluetoothDevice.uuids attribute from WebBluetooth (Closed)
Patch Set: address more comments Created 4 years, 1 month 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('GlucoseHeartRateAdapter')
9 .then(() => requestDeviceWithKeyDown({
10 filters: [{services: ['glucose']}],
11 optionalServices: ['tx_power']}))
12 .then(device => {
13 assert_equals(device.uuids.length, 2);
14 assert_in_array(BluetoothUUID.getService('glucose'), device.uuids);
15 assert_in_array(BluetoothUUID.getService('tx_power'), device.uuids);
16 });
17 }, 'We should only see UUID\'s that we\'ve been given permission for.')
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698