Bug 1439846: Add requestLongerTimeout to browser_animation_animation-detail_visibility. r=gl

MozReview-Commit-ID: EnbiA2LbkZL

--HG--
extra : rebase_source : bf5d03e0ceca1299b9421591a04a877f9f352e9c
This commit is contained in:
Daisuke Akatsuka 2018-03-05 10:54:35 +09:00
parent f0d07cb595
commit 2b27b36dfe

View File

@ -5,6 +5,8 @@
// Test that whether animations detail could be displayed if there is selected animation.
requestLongerTimeout(2);
add_task(async function () {
await addTab(URL_ROOT + "doc_multi_timings.html");
const { animationInspector, inspector, panel } = await openAnimationInspector();
@ -20,14 +22,12 @@ add_task(async function () {
isnot(win.getComputedStyle(detailEl).display, "none", "detailEl should be visibled");
info("Checking animation detail visibility when choose node which has animations");
const htmlNode = await getNodeFront("html", inspector);
await selectNodeAndWaitForAnimations(htmlNode, inspector);
await selectNodeAndWaitForAnimations("html", inspector);
is(win.getComputedStyle(detailEl).display, "none",
"detailEl should be unvisibled after choose html node");
"detailEl should be unvisibled after choose html node");
info("Checking animation detail visibility when choose node which has an animation");
const animatedNode = await getNodeFront(".cssanimation-normal", inspector);
await selectNodeAndWaitForAnimations(animatedNode, inspector);
await selectNodeAndWaitForAnimations(".cssanimation-normal", inspector);
isnot(win.getComputedStyle(detailEl).display, "none",
"detailEl should be visibled after choose .cssanimation-normal node");
"detailEl should be visibled after choose .cssanimation-normal node");
});