Bug 1371115 - Part 14: add tests for moz prefixed properties. r=hiro

Since we implement following properties animatable, append to test.

* -moz-border-bottom-colors
* -moz-border-left-colors
* -moz-border-right-colors
* -moz-border-top-colors

MozReview-Commit-ID: E3zWaDcRdtE

--HG--
extra : rebase_source : 27301a4bc354f14cf3f90e8c8271be6022d99721
This commit is contained in:
Daisuke Akatsuka 2017-07-05 13:54:08 +09:00
Родитель d455bb09bd
Коммит d1aa803f11
1 изменённых файлов: 13 добавлений и 7 удалений

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

@ -13,6 +13,18 @@
"use strict";
const testcases = [
{
property: "-moz-border-bottom-colors",
},
{
property: "-moz-border-left-colors",
},
{
property: "-moz-border-right-colors",
},
{
property: "-moz-border-top-colors",
},
{
property: "-moz-box-align"
},
@ -24,10 +36,6 @@ const testcases = [
},
{
property: "-moz-box-orient",
expectedValueMap: {
"block-axis": "vertical",
"inline-axis": "horizontal",
}
},
{
property: "-moz-box-pack"
@ -84,9 +92,7 @@ testcases.forEach(testcase => {
target.animate({ [property.domProp]: [value, "inherit"] },
{ duration: 1000, delay: -500 } );
const expectedValue =
testcase.expectedValueMap && testcase.expectedValueMap[value]
? testcase.expectedValueMap[value] : value;
const expectedValue = getComputedStyle(container)[property.domProp];
assert_equals(getComputedStyle(target)[property.domProp], expectedValue,
`Computed style shoud be "${ expectedValue }"`);
}, `Test inherit value for "${ testcase.property }" `