diff options
Diffstat (limited to 'devtools/client/animationinspector/test/browser_animation_panel_exists.js')
-rw-r--r-- | devtools/client/animationinspector/test/browser_animation_panel_exists.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/client/animationinspector/test/browser_animation_panel_exists.js b/devtools/client/animationinspector/test/browser_animation_panel_exists.js new file mode 100644 index 000000000..1f12605a5 --- /dev/null +++ b/devtools/client/animationinspector/test/browser_animation_panel_exists.js @@ -0,0 +1,23 @@ +/* vim: set ts=2 et sw=2 tw=80: */ +/* 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"); +}); |