| Index: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
|
| index 0007605d947a9d135756d5b29d9ce6b729cc1dad..18a902ea6b326c7c94725b7b5f28b84d6bfa451b 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
|
| @@ -1,18 +1,17 @@
|
| <!DOCTYPE html>
|
| <title>Request A Bluetooth Device On An Insecure Origin</title>
|
| <script src="/resources/testharness.js"></script>
|
| -<script src="/resources/testharness-helpers.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| <script src="/resources/get-host-info.js"></script>
|
| <script>
|
| if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
|
| window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pathname;
|
| } else {
|
| - promise_test(function() {
|
| - return assert_promise_rejects(navigator.bluetooth.requestDevice({
|
| - filters: [{services: ['generic_access']}]
|
| - }),
|
| - 'SecurityError');
|
| + promise_test(function(test) {
|
| + return promise_rejects(test, 'SecurityError',
|
| + navigator.bluetooth.requestDevice({
|
| + filters: [{services: ['generic_access']}]
|
| + }));
|
| }, "Requires secure context before user gesture");
|
| }
|
| </script>
|
|
|