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

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

Issue 2874873003: bluetooth: Implement simulateGATTConnectionResponse() (Closed)
Patch Set: Merge branch 'bluetooth-generate-with-headers' into bluetooth-simulate-gatt-discovery-complete 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/invalid-service-name.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/invalid-service-name.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/invalid-service-name.html
index 248d41020316ed15c7a79685ed35680764a6e815..5408355c3e1ed410ca0ea82885ec8d9a2f77cf3e 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/invalid-service-name.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/invalid-service-name.html
@@ -2,16 +2,16 @@
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script src="../../../resources/bluetooth/web-bluetooth-test.js"></script>
+<script src="../../../resources/mojo-helpers.js"></script>
<script>
'use strict';
promise_test(() => {
- return setBluetoothFakeAdapter('HeartRateAdapter')
- .then(() => requestDeviceWithKeyDown({
- filters: [{services: ['heart_rate']}]}))
- .then(device => device.gatt.connect())
- .then(gattServer => {
+ return getConnectedHealthThermometerDevice()
+ .then(([device]) => {
return assert_promise_rejects_with_message(
- gattServer.getPrimaryServices('wrong_name'), new DOMException(
+ device.gatt.getPrimaryServices('wrong_name'),
+ new DOMException(
'Failed to execute \'getPrimaryServices\' on ' +
'\'BluetoothRemoteGATTServer\': Invalid Service name: ' +
'\'wrong_name\'. ' +

Powered by Google App Engine
This is Rietveld 408576698