summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions/permissionsstatus-name.html
blob: db1d1bb83eba9f55e68b1cc5a0f8224be98a36cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<meta charset=utf-8>
<title>Test PermissionStatus's name attribute.</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id="log"></div>

<script>
promise_test(async () => {
  const result = await navigator.permissions.query({
    name: "geolocation",
  });
  assert_equals(result.name, "geolocation", "Name was geolocation");
});
</script>