Bug 1447259: Change the tested animation in browser_animation_summary-graph_computed-timing-path_different-timescale.js test since the animation can intermittently already be finished during selectNodeAndWaitForAnimations. r=gl

This commit is contained in:
Daisuke Akatsuka 2018-04-03 10:29:12 +09:00
Родитель 0626b8ac56
Коммит 361d95ecbf
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -10,14 +10,14 @@ add_task(async function() {
const { inspector, panel } = await openAnimationInspector();
info("Checking the path for different time scale");
await selectNodeAndWaitForAnimations(".no-compositor", inspector);
await selectNodeAndWaitForAnimations(".animated", inspector);
const pathStringA = panel.querySelector(".animation-iteration-path").getAttribute("d");
info("Select animation which has different time scale from no-compositor");
await selectNodeAndWaitForAnimations(".endDelayed", inspector);
await selectNodeAndWaitForAnimations("#endDelayed", inspector);
info("Select no-compositor again");
await selectNodeAndWaitForAnimations(".no-compositor", inspector);
await selectNodeAndWaitForAnimations(".animated", inspector);
const pathStringB = panel.querySelector(".animation-iteration-path").getAttribute("d");
is(pathStringA, pathStringB, "Path string should be same even change the time scale");
});