1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
6 // Test whether the deprecated CSS property is shown as issue correctly or not.
9 COMPATIBILITY_ISSUE_TYPE,
10 } = require("resource://devtools/shared/constants.js");
16 scrollbar-width: thin;
17 user-modify: read-only;
28 const TEST_DATA_SELECTED = [
30 type: COMPATIBILITY_ISSUE_TYPE.CSS_PROPERTY,
31 property: "scrollbar-width",
32 url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-width",
37 type: COMPATIBILITY_ISSUE_TYPE.CSS_PROPERTY_ALIASES,
38 property: "user-modify",
39 url: "https://developer.mozilla.org/docs/Web/CSS/user-modify",
40 aliases: ["user-modify"],
46 const TEST_DATA_ALL = [
47 ...TEST_DATA_SELECTED,
49 type: COMPATIBILITY_ISSUE_TYPE.CSS_PROPERTY,
50 property: "ruby-align",
51 url: "https://developer.mozilla.org/docs/Web/CSS/ruby-align",
57 add_task(async function () {
58 await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
60 const { allElementsPane, selectedElementPane } =
61 await openCompatibilityView();
63 info("Check the content of the issue list on the selected element");
64 await assertIssueList(selectedElementPane, TEST_DATA_SELECTED);
66 info("Check the content of the issue list on all elements");
67 await assertIssueList(allElementsPane, TEST_DATA_ALL);