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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js

Issue 1859463002: bluetooth: Remove disconnect when page hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address jyasskin's comments 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 unified diff | Download patch
OLDNEW
1 'use strict'; 1 'use strict';
2 2
3 // Bluetooth UUID constants: 3 // Bluetooth UUID constants:
4 // Services: 4 // Services:
5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; 5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985";
6 // Characteristics: 6 // Characteristics:
7 var blacklist_exclude_reads_characteristic_uuid = 7 var blacklist_exclude_reads_characteristic_uuid =
8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; 8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135";
9 9
10 // Sometimes we need to test that using either the name, alias, or UUID 10 // Sometimes we need to test that using either the name, alias, or UUID
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // At the end of each test we clean up all the leftover data in the browser, 315 // At the end of each test we clean up all the leftover data in the browser,
316 // including revoking permissions. This happens before the test document is 316 // including revoking permissions. This happens before the test document is
317 // detached. Once the document is detached any device that connected tries 317 // detached. Once the document is detached any device that connected tries
318 // to disconnect but by then the document no longer has permission to 318 // to disconnect but by then the document no longer has permission to
319 // interact with the device. So before we clean up the browser data 319 // interact with the device. So before we clean up the browser data
320 // we change the visibility which results in all devices disconnecing. 320 // we change the visibility which results in all devices disconnecing.
321 // TODO(ortuno): Remove setPageVisibility hack. In the future, the browser 321 // TODO(ortuno): Remove setPageVisibility hack. In the future, the browser
322 // will notify the renderer that the device disconnected so we won't need 322 // will notify the renderer that the device disconnected so we won't need
323 // this hack. 323 // this hack.
324 // https://crbug.com/581855 324 // https://crbug.com/581855
325 testRunner.setPageVisibility('hidden');
326 testRunner.setPageVisibility('visible');
327 testRunner.setBluetoothManualChooser(false); 325 testRunner.setBluetoothManualChooser(false);
328 setBluetoothFakeAdapter(''); 326 setBluetoothFakeAdapter('');
329 }); 327 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698