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

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

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed LICENSE and windows build Created 6 years, 5 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
Index: Source/core/animation/AnimationTest.cpp
diff --git a/Source/core/animation/AnimationTest.cpp b/Source/core/animation/AnimationTest.cpp
index c4a3e7607ff1bbc51c3608ee51936c756c2e49b4..09c6034fae2531411c0a33787cf807962beb94ac 100644
--- a/Source/core/animation/AnimationTest.cpp
+++ b/Source/core/animation/AnimationTest.cpp
@@ -6,6 +6,7 @@
#include "core/animation/Animation.h"
#include "bindings/core/v8/Dictionary.h"
+#include "bindings/core/v8/DictionaryHelper.h"
#include "core/animation/AnimationClock.h"
#include "core/animation/AnimationHelpers.h"
#include "core/animation/AnimationNodeTiming.h"
@@ -75,11 +76,11 @@ TEST_F(AnimationAnimationV8Test, CanCreateAnAnimation)
jsKeyframes.append(Dictionary(keyframe2, m_isolate));
String value1;
- ASSERT_TRUE(jsKeyframes[0].get("width", value1));
+ ASSERT_TRUE(DictionaryHelper::get(jsKeyframes[0], "width", value1));
ASSERT_EQ("100px", value1);
String value2;
- ASSERT_TRUE(jsKeyframes[1].get("width", value2));
+ ASSERT_TRUE(DictionaryHelper::get(jsKeyframes[1], "width", value2));
ASSERT_EQ("0px", value2);
RefPtrWillBeRawPtr<Animation> animation = createAnimation(element.get(), jsKeyframes, 0, exceptionState);

Powered by Google App Engine
This is Rietveld 408576698