Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: Source/core/animation/EffectInputTest.cpp

Issue 1153413007: Resolve style in element.animate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add DOCTYPE Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/EffectInput.cpp ('k') | Source/core/animation/KeyframeEffectTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/animation/EffectInput.cpp ('k') | Source/core/animation/KeyframeEffectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698