summaryrefslogtreecommitdiff
path: root/devtools/client/animationinspector/test/browser_animation_panel_exists.js
blob: d420a7f97bf1570465a49687c33dc634b2a9ee8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Any copyright is dedicated to the Public Domain.
 http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

// Test that the animation panel sidebar exists

add_task(function* () {
  yield addTab("data:text/html;charset=utf-8,welcome to the animation panel");
  let {panel, controller} = yield openAnimationInspector();

  ok(controller,
     "The animation controller exists");
  ok(controller.animationsFront,
     "The animation controller has been initialized");
  ok(panel,
     "The animation panel exists");
  ok(panel.playersEl,
     "The animation panel has been initialized");
  ok(panel.animationsTimelineComponent,
     "The animation panel has been initialized");
});