Don't test properties whose values overlap with others.

This commit is contained in:
dbaron@dbaron.org 2007-07-22 12:56:35 -07:00
parent f1bb8b5fce
commit 3586987792

View File

@ -20,21 +20,6 @@
<pre id="test"> <pre id="test">
<script class="testbody" type="text/javascript"> <script class="testbody" type="text/javascript">
var gNoComputedStyle = {
"-moz-border-end": true, // NB: shorthand
"-moz-border-end-color": true,
"-moz-border-end-style": true,
"-moz-border-end-width": true,
"-moz-border-start": true, // NB: shorthand
"-moz-border-start-color": true,
"-moz-border-start-style": true,
"-moz-border-start-width": true,
"-moz-margin-end": true,
"-moz-margin-start": true,
"-moz-padding-end": true,
"-moz-padding-start": true,
};
var gXFailComputed = { var gXFailComputed = {
// The initial value of -moz-user-select can't be specified and isn't // The initial value of -moz-user-select can't be specified and isn't
// serialized correctly. // serialized correctly.
@ -42,7 +27,7 @@ var gXFailComputed = {
}; };
function xfail_computecheck(prop, roundnum) { function xfail_computecheck(prop, roundnum) {
return prop in gNoComputedStyle || prop in gXFailComputed; return prop in gXFailComputed;
} }
function xfail_test(prop, roundnum) { function xfail_test(prop, roundnum) {
@ -60,7 +45,7 @@ function round(lower_set, higher_set, roundnum) {
for (var prop in gCSSProperties) { for (var prop in gCSSProperties) {
var info = gCSSProperties[prop]; var info = gCSSProperties[prop];
if (info.backend_only || info.subproperties) if (info.backend_only || info.subproperties || info.get_computed)
continue; continue;
gRule1.style.setProperty(prop, info[lower_set][0], ""); gRule1.style.setProperty(prop, info[lower_set][0], "");
gRule2.style.setProperty(prop, info[higher_set][0], ""); gRule2.style.setProperty(prop, info[higher_set][0], "");
@ -68,7 +53,7 @@ function round(lower_set, higher_set, roundnum) {
for (var prop in gCSSProperties) { for (var prop in gCSSProperties) {
var info = gCSSProperties[prop]; var info = gCSSProperties[prop];
if (info.backend_only || info.subproperties) if (info.backend_only || info.subproperties || info.get_computed)
continue; continue;
if ("prerequisites" in info) { if ("prerequisites" in info) {