| Index: Source/core/animation/EffectInputTest.cpp
|
| diff --git a/Source/core/animation/EffectInputTest.cpp b/Source/core/animation/EffectInputTest.cpp
|
| index 21ab7bcb4d8a0b11ee51a7e6e6a1a5b491d2413c..dc2d493388ee4ba3cd2c012a06b876932def595d 100644
|
| --- a/Source/core/animation/EffectInputTest.cpp
|
| +++ b/Source/core/animation/EffectInputTest.cpp
|
| @@ -12,6 +12,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/Element.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/testing/DummyPageHolder.h"
|
| #include <gtest/gtest.h>
|
| #include <v8.h>
|
|
|
| @@ -22,14 +23,17 @@ namespace {
|
| class AnimationEffectInputTest : public ::testing::Test {
|
| protected:
|
| AnimationEffectInputTest()
|
| - : document(Document::create())
|
| - , element(document->createElement("foo", ASSERT_NO_EXCEPTION))
|
| + : pageHolder(DummyPageHolder::create())
|
| + , document(pageHolder->document())
|
| + , element(document.createElement("foo", ASSERT_NO_EXCEPTION))
|
| , m_isolate(v8::Isolate::GetCurrent())
|
| , m_scope(m_isolate)
|
| {
|
| + document.documentElement()->appendChild(element);
|
| }
|
|
|
| - RefPtrWillBePersistent<Document> document;
|
| + OwnPtr<DummyPageHolder> pageHolder;
|
| + Document& document;
|
| RefPtrWillBePersistent<Element> element;
|
| TrackExceptionState exceptionState;
|
| v8::Isolate* m_isolate;
|
|
|