Bug 627885 - Reduce test_value_cloning test output, r=dbaron

This commit is contained in:
Masatoshi Kimura 2011-10-30 00:55:00 -07:00
Родитель 57230cafcc
Коммит 4e7b901724
1 изменённых файлов: 11 добавлений и 3 удалений

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

@ -155,9 +155,17 @@ function iframe_loaded(event)
if (!("backend_only" in info)) {
var end_compute = get_computed_value(test_cs[idx], current_item.prop);
is(end_compute, start_compute[idx],
"computed values should match when cloning " +
current_item.prop + ": " + current_item.value);
// Output computed values only when the test failed.
// Computed values may be very long.
if (end_compute == start_compute[idx]) {
ok(true,
"computed values should match when cloning " +
current_item.prop + ": " + current_item.value);
} else {
is(end_compute, start_compute[idx],
"computed values should match when cloning " +
current_item.prop + ": " + current_item.value);
}
}
}