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

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

Issue 1706503002: Add enterprise policy to turn off Bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Sync Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
diff --git a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
index eb995d3fc5a6307dc1a73177eee1890f86f05a41..318702d39ea0d69db210b700718887e89802b95c 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
+++ b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js
@@ -287,6 +287,10 @@ class EventCatcher {
}
}
+// Layout tests default to denying permissions, but to test the Bluetooth
+// chooser we need to be in the "prompt" state.
+testRunner.setPermission("bluetooth-guard", "prompt", location.origin, location.origin);
+
// Bluetooth tests sometimes have left-over state that could leak into the
// next test. add_result_callback which is exposed by testharness.js allows us
// to clean up this state after each test. In the future we will split tests

Powered by Google App Engine
This is Rietveld 408576698