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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-no-permission-for-any-service-with-uuid.html

Issue 2874873003: bluetooth: Implement simulateGATTConnectionResponse() (Closed)
Patch Set: fix 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/getPrimaryServices/gen-no-permission-for-any-service-with-uuid.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-no-permission-for-any-service-with-uuid.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-no-permission-for-any-service-with-uuid.html
index 12b0ef9e40176fca461d26d58fb5c977a6631bc4..c80c9831aa5f952af7f4c3dd6ebb445f79d48aa4 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-no-permission-for-any-service-with-uuid.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-no-permission-for-any-service-with-uuid.html
@@ -8,18 +8,14 @@
<script>
'use strict';
promise_test(() => {
- return setBluetoothFakeAdapter('HeartRateAdapter')
- .then(() => requestDeviceWithKeyDown({
- filters: [{name: 'Heart Rate Device'}]}))
- .then(device => device.gatt.connect())
- .then(gattServer => assert_promise_rejects_with_message(
- gattServer.getPrimaryServices('heart_rate'),
+ return getHealthThermometerDevice({acceptAllDevices: true})
+ .then(([device]) => assert_promise_rejects_with_message(
+ device.gatt.getPrimaryServices('heart_rate'),
new DOMException('Origin is not allowed to access any service. Tip: ' +
'Add the service UUID to \'optionalServices\' in ' +
'requestDevice() options. https://goo.gl/HxfxSQ',
'SecurityError')));
}, 'Request for present service without permission to access any service. ' +
'Reject with SecurityError.');
-</script>
</script>

Powered by Google App Engine
This is Rietveld 408576698