gecko-dev/dom/animation/test
Brian Birtles 121b831ff7 Bug 1122414 part 2 - Return the transitionProperty from Animation.name for CSS transitions; r=jwatt
This is a bit awkward. We lazily set mName to the transition property and then
return it. The reasons for this approach are:

* We don't really want to eagerly fill in mName for all transitions since in
  99% of cases we'll never use it and this will lead to wasted allocations.

* The signature of Name() returns a const nsString reference. This is because
  Name() is used when building CSS Animations (to compare different copies of
  the same animation when updating). For that case we don't really want to
  generate unnecessary copies of nsString objects so we return a reference.
  However, that means for transitions as well we need to return a reference so
  we can't just generate a temporary string on-demand.

  As a result we also have to const-cast ourselves so we can update the mName
  member. We could make mName mutable but seeing as it's only set once, the
  const_cast seems more appropriate.
2015-04-14 09:13:27 +09:00
..
chrome Bug 1145912 - Wait for animations to start before continuing in subtests that assume they are running. r=birtles 2015-04-02 14:56:14 +11:00
css-animations Bug 1149832 - Replace the Web Animations test helper waitForTwoAnimationFrames() with a helper that takes a frame count. r=birtles 2015-03-31 23:27:19 +01:00
css-transitions Bug 1122414 part 2 - Return the transitionProperty from Animation.name for CSS transitions; r=jwatt 2015-04-14 09:13:27 +09:00
document-timeline Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
mozilla Bug 1145246, part 2 - Update Web Animations code and tests for the rename of Animatable.getAnimationPlayers() to Animatable.getAnimations(). r=birtles 2015-03-20 18:20:37 +00:00
chrome.ini Bug 1123523 - Part 10: Tests. r=birtles 2015-03-14 16:34:40 +11:00
mochitest.ini Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
testcommon.js Bug 1149832 - Replace the Web Animations test helper waitForTwoAnimationFrames() with a helper that takes a frame count. r=birtles 2015-03-31 23:27:19 +01:00