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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/optional-services-present.html

Issue 2510323002: bluetooth: Implement acceptAllDevices (Closed)
Patch Set: clean up Created 4 years 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('TwoHeartRateServicesAdapter')
9 .then(() => requestDeviceWithKeyDown({
10 acceptAllDevices: true,
11 optionalServices: ['heart_rate']
12 }))
13 .then(device => device.gatt.connect())
14 .then(gattServer => gattServer.getPrimaryServices())
15 .then(services => {
16 assert_equals(services.length, 2);
17 services.forEach(service => {
18 assert_equals(service.uuid, BluetoothUUID.getService('heart_rate'));
19 });
20 })
21 }, 'requestDevice called with acceptAllDevices: true and with ' +
22 'optionalServices. Should get access to services.');
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698