Bug 1637540: Add test for a property defined with prefix. r=rcaliman

Depends on D75256

Differential Revision: https://phabricator.services.mozilla.com/D75257
This commit is contained in:
Daisuke Akatsuka 2020-05-14 18:19:42 +00:00
Родитель bcb5bd2ded
Коммит 6bd4831b79
1 изменённых файлов: 25 добавлений и 5 удалений

Просмотреть файл

@ -9,16 +9,21 @@ const cssPropertiesCompatData = require("devtools/client/inspector/compatibility
const mdnCompatibility = new MDNCompatibility(cssPropertiesCompatData);
const FIREFOX_69 = {
id: "firefox",
version: "69",
};
const FIREFOX_1 = {
id: "firefox",
version: "1",
};
const FIREFOX_60 = {
id: "firefox",
version: "60",
};
const FIREFOX_69 = {
id: "firefox",
version: "69",
};
const SAFARI_13 = {
id: "safari",
version: "13",
@ -114,6 +119,21 @@ const TEST_DATA = [
browsers: [FIREFOX_69, SAFARI_13],
expectedIssues: [],
},
{
description: "Test for a property defined with prefix",
declarations: [{ name: "-moz-binding" }],
browsers: [FIREFOX_1, FIREFOX_60, FIREFOX_69],
expectedIssues: [
{
type: MDNCompatibility.ISSUE_TYPE.CSS_PROPERTY,
property: "-moz-binding",
url: "https://developer.mozilla.org/docs/Web/CSS/-moz-binding",
deprecated: true,
experimental: false,
unsupportedBrowsers: [FIREFOX_69],
},
],
},
];
add_task(() => {