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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/stop-discovery-by-adapter-discovering-changed.html

Issue 2735773002: work in progress
Patch Set: Created 3 years, 9 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
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 let requestDevicePromise =
10 setBluetoothFakeAdapter('SecondDiscoveryFindsHeartRateAdapter')
11 .then(() => requestDeviceWithKeyDown({
12 filters: [{services: ['heart_rate']}]}));
13 return getBluetoothManualChooserEvents(2)
14 .then(events => {
15 assert_array_equals(events,
16 ['chooser-opened(file://)',
17 'discovering'],
18 events);
19 testRunner.sendBluetoothManualChooserEvent('adapter-discovering-changed', '');
20 return getBluetoothManualChooserEvents(1);
21 }).then(events => {
22 assert_equals(events[0], 'discovery-idle');
23 return assert_promise_rejects_with_message(
24 requestDevicePromise,
25 new DOMException('User cancelled the requestDevice() chooser.',
26 'NotFoundError'),
27 'The adapter failed to start a discovery session.');
28 });
29 }, 'Discovery session fails to start.');
30 </script>
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698