No longer need to null-check domProp in style system mochitests now that bug 374216 has landed.

This commit is contained in:
L. David Baron 2010-02-06 14:36:05 -08:00
Родитель 33efede947
Коммит 4bafde1064
2 изменённых файлов: 14 добавлений и 26 удалений

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

@ -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)