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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/blacklisted-service-in-filter.html

Issue 2449813002: bluetooth: Implement acceptAllDevices (Closed)
Patch Set: Created 4 years, 2 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/requestDevice/acceptAllDevices/blacklisted-service-in-filter.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/blacklisted-service-in-filter.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/blacklisted-service-in-filter.html
new file mode 100644
index 0000000000000000000000000000000000000000..35979907b3dbc89d2c8d37cacb7d9eb2516e4d57
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/blacklisted-service-in-filter.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script>
+'use strict';
+promise_test(() => {
+ return setBluetoothFakeAdapter('BlacklistTestAdapter')
+ .then(() => requestDeviceWithKeyDown({
+ acceptAllDevices: true,
+ filters: [{services: ['human_interface_device']}]}));
ortuno 2016/10/31 00:00:02 Also add a test for the fifth case in https://webb
+}, 'Does not reject with SecurityError if requesting a blacklisted service ' +
+ 'when acceptAllDevices is true.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698