Bug 1784757 - Wait for one frame before asserting restyling state. r=hiro

Differential Revision: https://phabricator.services.mozilla.com/D194209
This commit is contained in:
Emilio Cobos Álvarez 2023-11-23 16:52:58 +00:00
Родитель 64727bead0
Коммит 76f6266d3b
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -92,6 +92,9 @@ async function test() {
// overflow: hidden style in the out-of-process iframe.
await setup_in_oopif();
// Wait for a frame to make sure animations are properly started.
await observe_styling_in_oopif(1);
let restyleCount = await observe_styling_in_oopif(5);
is(restyleCount, 0,
"Animation in an out-of-process iframe which is initially clipped out " +