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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html

Issue 1858103004: bluetooth: Separate notification tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo-notifications
Patch Set: Merge Created 4 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
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/notifications/stop-twice.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found-with-uuid.html b/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
similarity index 61%
copy from third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found-with-uuid.html
copy to third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
index 1f791a560992e7001c94ed8f5903df04aa762ea2..7cbb02923277a8249db0a1bc80b9830129cd2025 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found-with-uuid.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
@@ -5,15 +5,12 @@
<script>
'use strict';
promise_test(() => {
- let expected = new DOMException(
- 'No Characteristics with specified UUID found in Service.',
- 'NotFoundError');
return setBluetoothFakeAdapter('HeartRateAdapter')
.then(() => requestDeviceWithKeyDown({
filters: [{services: ['heart_rate']}]}))
.then(device => device.gatt.connect())
.then(gattServer => gattServer.getPrimaryService('heart_rate'))
- .then(service => assert_promise_rejects_with_message(
- service.getCharacteristics('battery_level'), expected));
-}, 'Request for absent characteristics with UUID. Reject with NotFoundError.');
+ .then(service => service.getCharacteristic('heart_rate_measurement'))
+ .then(characteristic => characteristic.stopNotifications());
+}, "Stop without starting.");
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/notifications/stop-twice.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698