зеркало из https://github.com/mozilla/gecko-dev.git
Fix missing frame in style system mochitests. (Bug 585715) r=bzbarsky a2.0=blocking2.0:beta6
This commit is contained in:
Родитель
b157c42495
Коммит
2842b50861
|
@ -162,6 +162,7 @@ var gCSSProperties = {
|
|||
domProp: "MozBorderRadius",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_TRUE_SHORTHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
subproperties: [ "-moz-border-radius-bottomleft", "-moz-border-radius-bottomright", "-moz-border-radius-topleft", "-moz-border-radius-topright" ],
|
||||
initial_values: [ "0", "0px", "0px 0 0 0px" ], /* 0% ? */
|
||||
other_values: [ "3%", "1px", "2em", "3em 2px", "2pt 3% 4em", "2px 2px 2px 2px", // circular
|
||||
|
@ -184,6 +185,7 @@ var gCSSProperties = {
|
|||
domProp: "MozBorderRadiusBottomleft",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px" ], /* 0% ? */
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -203,6 +205,7 @@ var gCSSProperties = {
|
|||
domProp: "MozBorderRadiusBottomright",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px" ], /* 0% ? */
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -222,6 +225,7 @@ var gCSSProperties = {
|
|||
domProp: "MozBorderRadiusTopleft",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px" ], /* 0% ? */
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -241,6 +245,7 @@ var gCSSProperties = {
|
|||
domProp: "MozBorderRadiusTopright",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px" ], /* 0% ? */
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -651,6 +656,7 @@ var gCSSProperties = {
|
|||
domProp: "MozOutlineRadius",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_TRUE_SHORTHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
subproperties: [ "-moz-outline-radius-bottomleft", "-moz-outline-radius-bottomright", "-moz-outline-radius-topleft", "-moz-outline-radius-topright" ],
|
||||
initial_values: [ "0", "0px", "0%" ],
|
||||
other_values: [ "3%", "1px", "2em", "3em 2px", "2pt 3% 4em", "2px 2px 2px 2px", // circular
|
||||
|
@ -673,6 +679,7 @@ var gCSSProperties = {
|
|||
domProp: "MozOutlineRadiusBottomleft",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px", "0%" ],
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -692,6 +699,7 @@ var gCSSProperties = {
|
|||
domProp: "MozOutlineRadiusBottomright",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px", "0%" ],
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -711,6 +719,7 @@ var gCSSProperties = {
|
|||
domProp: "MozOutlineRadiusTopleft",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px", "0%" ],
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
@ -730,6 +739,7 @@ var gCSSProperties = {
|
|||
domProp: "MozOutlineRadiusTopright",
|
||||
inherited: false,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "width": "200px", "height": "100px", "display": "inline-block"},
|
||||
initial_values: [ "0", "0px", "0%" ],
|
||||
other_values: [ "3%", "1px", "2em", // circular
|
||||
"3% 2%", "1px 4px", "2em 2pt", // elliptical
|
||||
|
|
|
@ -130,6 +130,15 @@ function test_property(property)
|
|||
gElementN.parentNode.style.removeProperty(property);
|
||||
gElementF.parentNode.style.removeProperty(property);
|
||||
}
|
||||
|
||||
// FIXME: Something (maybe with the -moz-binding values in
|
||||
// test_value_computation.html, but may as well do it here to match)
|
||||
// causes gElementF's frame to get lost. Force it to get recreated
|
||||
// after each property.
|
||||
gElementF.parentNode.style.display = "none";
|
||||
get_computed_value(getComputedStyle(gElementF, ""), "width");
|
||||
gElementF.parentNode.style.display = "";
|
||||
get_computed_value(getComputedStyle(gElementF, ""), "width");
|
||||
}
|
||||
|
||||
function run_tests() {
|
||||
|
|
|
@ -43,22 +43,19 @@ var gBadComputed = {
|
|||
// These values are treated as auto.
|
||||
"page-break-after": [ "avoid" ],
|
||||
"page-break-before": [ "avoid" ],
|
||||
};
|
||||
|
||||
var gBadComputedNoFrame = {
|
||||
// These are probably bogus tests...
|
||||
"-moz-outline-radius": [ "0%" ],
|
||||
"-moz-outline-radius-bottomleft": [ "0%" ],
|
||||
"-moz-outline-radius-bottomright": [ "0%" ],
|
||||
"-moz-outline-radius-topleft": [ "0%" ],
|
||||
"-moz-outline-radius-topright": [ "0%" ],
|
||||
// These are probably bogus tests... (why not just when no frame?)
|
||||
"-moz-margin-end": [ "0%" ],
|
||||
"-moz-margin-start": [ "0%" ],
|
||||
"-moz-padding-end": [ "0%" ],
|
||||
"-moz-padding-start": [ "0%" ],
|
||||
};
|
||||
|
||||
var gBadComputedNoFrame = {
|
||||
// These are probably bogus tests...
|
||||
"margin": [ "0% 0px 0em 0pt" ],
|
||||
"margin-bottom": [ "0%" ],
|
||||
"margin-left": [ "0%" ],
|
||||
|
@ -197,6 +194,14 @@ function test_value(property, val, is_initial)
|
|||
gElementN.parentNode.style.removeProperty(property);
|
||||
gElementF.parentNode.style.removeProperty(property);
|
||||
}
|
||||
|
||||
// FIXME: Something (maybe with the -moz-binding values) causes
|
||||
// gElementF's frame to get lost. Force it to get recreated after
|
||||
// each property.
|
||||
gElementF.parentNode.style.display = "none";
|
||||
get_computed_value(getComputedStyle(gElementF, ""), "width");
|
||||
gElementF.parentNode.style.display = "";
|
||||
get_computed_value(getComputedStyle(gElementF, ""), "width");
|
||||
}
|
||||
|
||||
function test_property(prop) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче