| Index: Source/core/animation/DocumentTimelineTest.cpp
|
| diff --git a/Source/core/animation/DocumentTimelineTest.cpp b/Source/core/animation/DocumentTimelineTest.cpp
|
| index fa782f957c8ee50434735839bee0e0d954ce3353..b8e8aa7ba313115fa58d54160f7245c9416dbe3b 100644
|
| --- a/Source/core/animation/DocumentTimelineTest.cpp
|
| +++ b/Source/core/animation/DocumentTimelineTest.cpp
|
| @@ -43,17 +43,30 @@ using namespace WebCore;
|
|
|
| namespace {
|
|
|
| +class EmptyAnimationEffect : public AnimationEffect {
|
| +public:
|
| + static PassRefPtr<EmptyAnimationEffect> create()
|
| + {
|
| + return adoptRef(new EmptyAnimationEffect);
|
| + }
|
| + virtual PassOwnPtr<CompositableValueMap> sample(int iteration, double fraction) const
|
| + {
|
| + return adoptPtr(new CompositableValueMap);
|
| + }
|
| +private:
|
| + EmptyAnimationEffect() { }
|
| +};
|
| +
|
| TEST(DocumentTimeline, AddAnAnimation)
|
| {
|
| RefPtr<Document> d = Document::create(0, KURL());
|
| RefPtr<Element> e = Element::create(nullQName() , d.get());
|
| RefPtr<DocumentTimeline> timeline = DocumentTimeline::create(d.get());
|
| Timing timing;
|
| - RefPtr<Animation> anim = Animation::create(e.get(), AnimationEffect::create(), timing);
|
| + RefPtr<Animation> anim = Animation::create(e.get(), EmptyAnimationEffect::create(), timing);
|
| timeline->play(anim);
|
| timeline->serviceAnimations(0);
|
| - StylePropertySet* styleSet = anim->cachedStyle();
|
| - ASSERT_EQ(0u, styleSet->propertyCount());
|
| + ASSERT_TRUE(anim->compositableValues()->isEmpty());
|
| }
|
|
|
| }
|
|
|