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 |