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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html

Issue 2858803003: bluetooth: Implement simulatePreconnectedPeripheral. (Closed)
Patch Set: small cleanup Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html
index bf2bfbde0527d321cab77914835a65e7edf9fa17..8f749d03d107e6f65aac2807e5be597b59f8741f 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-device-from-name-empty-filter.html
@@ -2,16 +2,17 @@
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script src="../../resources/mojo-helpers.js"></script>
+<script src="../../resources/bluetooth/web-bluetooth-test.js"></script>
<script>
'use strict';
promise_test(() => {
- return setBluetoothFakeAdapter('EmptyNameHeartRateAdapter')
- .then(() => requestDeviceWithKeyDown({
- filters: [{name: ''}],
- optionalServices: ['generic_access']}))
- .then(device => {
- assert_equals(device.name, '');
- })
+ return setUpSystemConnectedDevice({name: ''})
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{name: ''}],
+ optionalServices: ['generic_access']}))
scheib 2017/05/03 20:38:49 If possible, remove optionalServices line.
ortuno 2017/05/04 04:16:21 Done.
+ .then(device => {
+ assert_equals(device.name, '');
+ });
}, 'An empty name device can be obtained by empty name filter.');
</script>
-

Powered by Google App Engine
This is Rietveld 408576698