Bug 1182856 - Part 6: Revise tests for display:none in test_transitions.html. r=heycam

--HG--
extra : rebase_source : cbf659d22ce0906f553b3cbea487ed50bef9b225
This commit is contained in:
Boris Chiou 2016-04-11 00:25:00 +02:00
Родитель 91b7c6e313
Коммит 92e405bc20
1 изменённых файлов: 6 добавлений и 9 удалений

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

@ -738,18 +738,15 @@ add_future_call(8, check_number_tests);
function check_display_tests(time) function check_display_tests(time)
{ {
var tf = timingFunctions["ease-in-out"];
for (var i in display_tests) { for (var i in display_tests) {
var p = display_tests[i]; var p = display_tests[i];
check_transition_value(tf, 0, 8, 0, 100, // There is no transition if the old or new style is display:none, so
getComputedStyle(p, "").textIndent, // the computed value is always the end value.
"display test for test with " + var computedValue = getComputedStyle(p, "").textIndent;
p.childNodes[0].data, is(computedValue, "100px",
// TODO: Making transitions work on 'display:none' elements is "display test for test with " + p.childNodes[0].data +
// still not implemented. ": computed value " + computedValue + " should be 100px.");
function(range) { return p != to_none_test &&
range[1] < 100 });
} }
} }