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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html

Issue 2858803003: bluetooth: Implement simulatePreconnectedPeripheral. (Closed)
Patch Set: small cleanup Created 3 years, 7 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> 4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
5 <script src="../../../resources/mojo-helpers.js"></script>
6 <script src="../../../resources/bluetooth/web-bluetooth-test.js"></script>
5 <script> 7 <script>
6 promise_test(() => { 8 promise_test(() => {
7 // The UnicodeDevice's name is '❤❤❤❤❤❤❤❤❤'. ❤ = \u2764 9 let device_name = generate_string(9, '\u2764' /* ❤ */);
scheib 2017/05/03 20:38:49 preexisting point, but why are we using generate_s
ortuno 2017/05/04 04:16:21 Changed it to 'LE Device' since there is no need f
8 let device_name = generate_string(9, '\u2764'); 10 return setUpSystemConnectedDevice({name: device_name})
9 return setBluetoothFakeAdapter('UnicodeDeviceAdapter')
10 .then(() => requestDeviceWithKeyDown({acceptAllDevices: true})) 11 .then(() => requestDeviceWithKeyDown({acceptAllDevices: true}))
11 .then(device => { 12 .then(device => {
12 assert_equals(device.name, device_name); 13 assert_equals(device.name, device_name);
13 }); 14 });
14 }, 'A device with name and no UUIDs nearby. Should be found if ' + 15 }, 'A device with name and no UUIDs nearby. Should be found if ' +
15 'acceptAllDevices is true.'); 16 'acceptAllDevices is true.');
16 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698