summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/compatibility/test/browser/browser_compatibility_unsupported-browsers_all.js
blob: c57c805ce1487b2afa9195b75b433464ac241e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

// Test whether the all of default browsers are unsupported.

const TEST_URI = `
  <style>
  body {
    user-modify: read-only;
  }
  </style>
  <body></body>
`;

add_task(async function () {
  await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
  const { inspector, selectedElementPane } = await openCompatibilityView();

  info("Get the taget browsers we set as default");
  const { targetBrowsers } = inspector.store.getState().compatibility;

  info("Check the content of the issue item");
  const expectedIssues = [
    {
      property: "user-modify",
      unsupportedBrowsers: targetBrowsers,
      url: "https://developer.mozilla.org/docs/Web/CSS/user-modify",
    },
  ];
  await assertIssueList(selectedElementPane, expectedIssues);
});