| 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..a3a0b7ee029c82eb8ca4f4aecf7d524ef31cad9f 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
|
| @@ -8,11 +8,11 @@
|
| 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>
|
|
|