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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/chooser/new-scan-services-discovered.html

Issue 2217573002: bluetooth: Only add new devices, connected devices and devices that changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-add-or-update
Patch Set: Fix typo Created 4 years, 4 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 testRunner.setBluetoothManualChooser(true);
9
10 let requestDevicePromise =
11 setBluetoothFakeAdapter('DeviceEventAdapter')
12 .then(() => requestDeviceWithKeyDown({
13 filters: [{services: ['generic_access']}]}));
14 return getBluetoothManualChooserEvents(4).then(events => {
15 assert_equals(events[0], 'chooser-opened(file://)');
16 assert_equals(events[1], 'discovering');
17 let idsByName = new AddDeviceEventSet();
18 idsByName.assert_add_device_event(events[2]);
19 assert_true(idsByName.has('Discovery Generic Access Device'));
20 assert_equals(events[3], 'discovery-idle');
21 testRunner.sendBluetoothManualChooserEvent(
22 'selected', idsByName.get('Discovery Generic Access Device'));
23 return requestDevicePromise;
24 });
25 });
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698