Fix the description of the serialize+parse tests.

This commit is contained in:
dbaron@dbaron.org 2007-05-05 10:06:49 -07:00
Родитель d59936d82e
Коммит be14e7beeb
1 изменённых файлов: 7 добавлений и 6 удалений

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

@ -40,9 +40,10 @@
* So we test idempotence of parse + serialize by running the whole
* operation twice. Likewise for parse + compute + cserialize.
*
* Slightly more interestingly, we test the idempotence of serialize +
* parse by comparing the output of parse + compute + cserialize to the
* output of parse + serialize + parse + compute + cserialize.
* Slightly more interestingly, we test that serialize + parse is the
* identity transform by comparing the output of parse + compute +
* cserialize to the output of parse + serialize + parse + compute +
* cserialize.
*/
var gShorthandsWithoutCondensingSerialize = {
@ -240,7 +241,7 @@ function test_property(property)
if (test_computed && info.type != CSS_TYPE_TRUE_SHORTHAND) {
func = xfail_idserparse_compute(property, value) ? todo_is : is;
func(gComputedStyle.getPropertyValue(property), step1comp,
"serialize+parse should be idempotent for '" +
"serialize+parse should be identity transform for '" +
property + ": " + value + "'");
}
@ -254,8 +255,8 @@ function test_property(property)
xfail_idsersplitparse_compute(property, subprop, value, step1comps[idx])
? todo_is : is;
func(gComputedStyle.getPropertyValue(subprop), step1comps[idx],
"serialize(" + subprop + ")+parse should be idempotent for '" +
property + ": " + value + "'");
"serialize(" + subprop + ")+parse should be the identity " +
"transform for '" + property + ": " + value + "'");
}
}
func = xfail_idparsesplitser(property, value) ? todo_is : is;