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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/script-tests/server/invalid-service-name.js

Issue 2921233002: Revert of bluetooth: Implement simulateGATTConnectionResponse() (Closed)
Patch Set: Created 3 years, 6 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/script-tests/server/invalid-service-name.js
diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/server/invalid-service-name.js b/third_party/WebKit/LayoutTests/bluetooth/script-tests/server/invalid-service-name.js
index 32544f0420130ea9c8bc8fd6ecdf03c4ca3257b6..fec437442d01cc8271477088aae218a41bf08f43 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/server/invalid-service-name.js
+++ b/third_party/WebKit/LayoutTests/bluetooth/script-tests/server/invalid-service-name.js
@@ -1,9 +1,12 @@
'use strict';
promise_test(() => {
- return getHealthThermometerDevice()
- .then(([device]) => {
+ return setBluetoothFakeAdapter('HeartRateAdapter')
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['heart_rate']}]}))
+ .then(device => device.gatt.connect())
+ .then(gatt => {
return assert_promise_rejects_with_message(
- device.gatt.CALLS([
+ gatt.CALLS([
getPrimaryService('wrong_name')|
getPrimaryServices('wrong_name')
]),

Powered by Google App Engine
This is Rietveld 408576698