зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1241021 part 4: Extend mochitest test_initial_storage.html to test that uppercase Webkit DOM accessors for css properties are functional. r=bz
This commit is contained in:
Родитель
6318b75bf5
Коммит
f249f40239
|
@ -37,6 +37,15 @@ function check_consistency(sproperty, valFromGetPropertyValue, messagePrefix)
|
|||
is(valFromGetPropertyValue, gDeclaration[sinfo.domProp],
|
||||
`(${messagePrefix}) consistency between ` +
|
||||
`decl.getPropertyValue(${sproperty}) and decl.${sinfo.domProp}`);
|
||||
|
||||
if (sinfo.domProp.startsWith("webkit")) {
|
||||
// For webkit-prefixed DOM accessors, test with lowercase and uppercase
|
||||
// first letter.
|
||||
var uppercaseDomProp = "W" + sinfo.domProp.substring(1);
|
||||
is(valFromGetPropertyValue, gDeclaration[uppercaseDomProp],
|
||||
`(${messagePrefix}) consistency between ` +
|
||||
`decl.getPropertyValue(${sproperty}) and decl.${uppercaseDomProp}`);
|
||||
}
|
||||
}
|
||||
|
||||
function test_property(property)
|
||||
|
|
Загрузка…
Ссылка в новой задаче