зеркало из https://github.com/mozilla/gecko-dev.git
No longer need to null-check domProp in style system mochitests now that bug 374216 has landed.
This commit is contained in:
Родитель
33efede947
Коммит
4bafde1064
|
@ -33,10 +33,8 @@ function test_property(property)
|
|||
var sinfo = gCSSProperties[sproperty];
|
||||
var val = gDeclaration.getPropertyValue(sproperty);
|
||||
is(val, "", "value of '" + sproperty + "' before we do anything");
|
||||
if (sinfo.domProp) {
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
check_initial(property);
|
||||
if ("subproperties" in info)
|
||||
|
@ -50,11 +48,9 @@ function test_property(property)
|
|||
val = gDeclaration.getPropertyValue(sproperty);
|
||||
is(val, "inherit",
|
||||
"inherit reported back for property '" + sproperty + "'");
|
||||
if (sinfo.domProp) {
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty +
|
||||
"') and decl." + sinfo.domProp);
|
||||
}
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty +
|
||||
"') and decl." + sinfo.domProp);
|
||||
}
|
||||
check_set(property);
|
||||
if ("subproperties" in info)
|
||||
|
@ -72,10 +68,8 @@ function test_property(property)
|
|||
var sinfo = gCSSProperties[sproperty];
|
||||
var val = gDeclaration.getPropertyValue(sproperty);
|
||||
is(val, "", "value of '" + sproperty + "' after removal of value");
|
||||
if (sinfo.domProp) {
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
check_final(property);
|
||||
if ("subproperties" in info)
|
||||
|
|
|
@ -33,10 +33,8 @@ function test_property(property)
|
|||
var sinfo = gCSSProperties[sproperty];
|
||||
var val = gDeclaration.getPropertyValue(sproperty);
|
||||
is(val, "", "value of '" + sproperty + "' before we do anything");
|
||||
if (sinfo.domProp) {
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
check_initial(property);
|
||||
if ("subproperties" in info)
|
||||
|
@ -50,11 +48,9 @@ function test_property(property)
|
|||
val = gDeclaration.getPropertyValue(sproperty);
|
||||
is(val, "-moz-initial",
|
||||
"-moz-initial reported back for property '" + sproperty + "'");
|
||||
if (sinfo.domProp) {
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty +
|
||||
"') and decl." + sinfo.domProp);
|
||||
}
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty +
|
||||
"') and decl." + sinfo.domProp);
|
||||
}
|
||||
check_set(property);
|
||||
if ("subproperties" in info)
|
||||
|
@ -72,10 +68,8 @@ function test_property(property)
|
|||
var sinfo = gCSSProperties[sproperty];
|
||||
var val = gDeclaration.getPropertyValue(sproperty);
|
||||
is(val, "", "value of '" + sproperty + "' after removal of value");
|
||||
if (sinfo.domProp) {
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
is(val, gDeclaration[sinfo.domProp],
|
||||
"consistency between decl.getPropertyValue('" + sproperty + "') and decl." + sinfo.domProp);
|
||||
}
|
||||
check_final(property);
|
||||
if ("subproperties" in info)
|
||||
|
|
Загрузка…
Ссылка в новой задаче