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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html

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/server/getPrimaryService/gen-invalid-service-name.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html
index 591757d13338f458628488390625ecc8b6b04651..aaa69c88ffa97c0e3057d1ce1b32dcc176ed8572 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/gen-invalid-service-name.html
@@ -8,10 +8,13 @@
<script>
'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.getPrimaryService('wrong_name'),
+ gatt.getPrimaryService('wrong_name'),
new DOMException(
'Failed to execute \'getPrimaryService\' on ' +
'\'BluetoothRemoteGATTServer\': Invalid Service name: ' +

Powered by Google App Engine
This is Rietveld 408576698