browser_animation_infinity-duration_tick-label.js (934B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 // Test of the content of tick label on timeline header 7 // with the animation which has infinity duration. 8 9 add_task(async function () { 10 await addTab(URL_ROOT + "doc_infinity_duration.html"); 11 const { inspector, panel } = await openAnimationInspector(); 12 13 info("Check the tick label content with limited duration animation"); 14 isnot( 15 panel.querySelector(".animation-list-container .tick-label:last-child") 16 .textContent, 17 "\u221E", 18 "The content should not be \u221E" 19 ); 20 21 info("Check the tick label content with infinity duration animation only"); 22 await selectNode(".infinity", inspector); 23 await waitUntil( 24 () => 25 panel.querySelector(".animation-list-container .tick-label:last-child") 26 .textContent === "\u221E" 27 ); 28 ok(true, "The content should be \u221E"); 29 });