Commit Graph

16 Commits

Author SHA1 Message Date
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Patrick Brosset
48a39f2d81 Bug 1155663 - More tests for the timeline-based animation inspector UI; r=bgrins 2015-06-15 12:03:54 +02:00
Patrick Brosset
92153696ea Bug 1155663 - Show animations as synchronized time blocks in animation inspector; r=bgrins
This is the first step towards the animation-inspector UI v3 (bug 1153271).
The new UI is still hidden behind a pref, and this change doesn't implement
everything that is in the current v2 UI.
This introduces a new Timeline graph to represent all currently animated nodes
below the currently selected node.
v2 used to show them as independent player widgets. With this patch, we now show
them as synchronized time blocks on a common time scale.
Each animation has a preview of the animated node in the left sidebar, and a time
block on the right, the width of which represents its duration. The animation name
is also displayed.
There's also a time graduations header and background that gives the user information
about how long do the animations last.
This change does *not* provide a way to know what's the currentTime nor a way to
set it yet.
This also makes the existing animationinspector tests that still make sense with
the new timeline-based UI run with the new UI pref on.
2015-06-11 15:45:57 +02:00
Patrick Brosset
501714e927 Bug 1153463 - Intermittent browser_animation_setting_currentTime_works_and_pauses.js. r=miker
The failing test was rewinding a player and expecting it to pause at 0.
But rewing first pauses (async) and then sets the time (async), and the test
was only waiting for the player to pause.
With this change, we now also wait until the time is the expected one.
2015-04-27 11:01:47 +02:00
Jordan Santell
11a3e3a081 Bug 1077464 - Wire console.profile/profileEnd to the new performance tool. Move most of the recording-model logic from the front end into the PerformanceFront and PerformanceActorConnection so it can manage recordings without the front end being viewed. r=vp,jryans,pbrosset 2015-04-14 08:58:58 -07:00
Patrick Brosset
ec78afa650 Bug 1134500 - Fix multiple browser/devtools/animationinspector intermittent tests; r=bgrins
This changes a few animationinspector tests by making them wait until the expected animation
state is reached rather than just waiting for the next animation auto-refresh update, which
might, in some cases, not be enough.

This is a re-landing of bug 1134500 and bug 1149711.
2015-04-03 10:32:48 +02:00
Ryan VanderMeulen
d431ace806 Backed out 3 changesets (bug 1120833, bug 1149711) for causing bug 1150615.
Backed out changeset 527c548ff03c (bug 1149711)
Backed out changeset 2fe22ffef154 (bug 1120833)
Backed out changeset 501fa7c170ed (bug 1120833)

CLOSED TREE
2015-04-02 14:42:05 -04:00
Patrick Brosset
c30cb9413d Bug 1149711 - Intermittent browser_animation_ui_updates_when_animation_changes.js; r=bgrins
On particularly slow test environments, it might not be enough to wait for the next
AnimationPlayerActor state update.
I introduced a helper function that makes it possible for tests to wait for state
updates until the animation state reaches the expected value. In most cases, we use
it to wait until an animation reaches a given playState (paused, running, finished).
2015-04-02 17:02:41 +02:00
Patrick Brosset
1eaf41cb1b Bug 1120833 - 4 - Tests for animation inspector refresh on addition/removal; r=miker 2015-04-01 11:06:22 +02:00
Patrick Brosset
389c29aaa5 Bug 1120833 - 1 - Remove EventEmitter usage in AnimationPlayerFront
The AnimationPlayerFront needs to emit events when its auto-refresh
mode is enabled, whenever the state changes. Until now, it was doing
so with EventEmitter.
But because decorating the class with EventEmitter adds on/once/off
functions to the instance, it ends up hiding the on/once/off functions
that were already there because the class extends addon sdk EventTarget.
2015-03-30 11:59:46 +02:00
Patrick Brosset
95eb1d2538 Bug 1137771 - Intermittent browser_animation_play_pause_button.js; r=miker
Instead of waiting for the next auto-refresh event only (which could be a
response to an older request, therefore not having the expected state yet),
wait until the state changes to what we expect in the test.
This means that if the play/pause button doesn't work anymore, then the test
will timeout, but at least it won't intermittently fail as it was doing until
now.
2015-03-31 16:18:02 +02:00
Patrick Brosset
0a6a9e354e Bug 1120343 - 3 - Tests for the current time control in the animation panel; r=miker 2015-03-18 12:17:07 +01:00
Patrick Brosset
f1587b21aa Bug 1132783 - Fix the init sequence of animationinspector tests to avoid intermittents. r=bgrins
CLOSED TREE
2015-02-13 05:41:00 -05:00
Patrick Brosset
d38e70b8e6 Bug 1129454 - 2 - Adds a global play/pause button to the animation panel; r=vp 2015-02-12 16:28:42 +01:00
Patrick Brosset
e1517f0ed2 Bug 1120899 - Extract the animationplayer meta-data UI to a refreshable component; r=bgrins 2015-02-04 14:03:29 +01:00
Patrick Brosset
2aab49fd92 Bug 1105825 - 4 - Adds a simple animation inspector panel to the inspector sidebar; r=bgrins r=vporof 2015-01-10 19:51:46 +01:00