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

Side by Side 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, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> 4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
5 <script> 5 <script>
6 'use strict'; 6 'use strict';
7 promise_test(() => { 7 promise_test(t => {
8 return setBluetoothFakeAdapter('FailingConnectionsAdapter') 8 return setBluetoothFakeAdapter('FailingConnectionsAdapter')
9 .then(() => requestDeviceWithKeyDown({ 9 .then(() => requestDeviceWithKeyDown({
10 filters: [{services: [errorUUID(0x1) /* in progress error */]}]})) 10 filters: [{services: [errorUUID(0x1) /* in progress error */]}]}))
11 .then(device => { 11 .then(device => {
12 device.gatt.connect(); 12 promise_rejects(t, 'NetworkError', device.gatt.connect());
13 }) 13 })
14 .then(runGarbageCollection); 14 .then(runGarbageCollection);
15 }, 'Garbage collection ran during a connect call that fails. ' + 15 }, 'Garbage collection ran during a connect call that fails. ' +
16 'Should not crash.'); 16 'Should not crash.');
17 </script> 17 </script>
OLDNEW
« 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