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
parent 33efede947
commit 4bafde1064
2 changed files with 14 additions and 26 deletions

View File

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

View File

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