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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error.html

Issue 2660693002: bluetooth: Fix failing connection test (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error.html b/third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error.html
index 29e49336778fc1b09907f32afe69e1e316fe1f95..9aa12e37f081da191561ab58776152625bbb0f8e 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error.html
@@ -4,12 +4,12 @@
<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
<script>
'use strict';
-promise_test(() => {
+promise_test(t => {
return setBluetoothFakeAdapter('FailingConnectionsAdapter')
.then(() => requestDeviceWithKeyDown({
filters: [{services: [errorUUID(0x1) /* in progress error */]}]}))
.then(device => {
- device.gatt.connect();
+ promise_rejects(t, 'NetworkError', device.gatt.connect());
})
.then(runGarbageCollection);
}, 'Garbage collection ran during a connect call that fails. ' +
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bluetooth/server/connect/garbage-collection-ran-during-error-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698