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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/AnimationInputHelpers.h" 5 #include "core/animation/AnimationInputHelpers.h"
6 6
7 #include <memory>
7 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
8 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
9 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
10 #include "platform/animation/TimingFunction.h" 11 #include "platform/animation/TimingFunction.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class AnimationAnimationInputHelpersTest : public ::testing::Test { 16 class AnimationAnimationInputHelpersTest : public ::testing::Test {
17 public: 17 public:
18 CSSPropertyID keyframeAttributeToCSSProperty(const String& property) { 18 CSSPropertyID keyframeAttributeToCSSProperty(const String& property) {
19 return AnimationInputHelpers::keyframeAttributeToCSSProperty(property, 19 return AnimationInputHelpers::keyframeAttributeToCSSProperty(property,
20 *document); 20 *document);
21 } 21 }
22 22
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 parseTimingFunction("steps(3, end)", exceptionState)->toString()); 130 parseTimingFunction("steps(3, end)", exceptionState)->toString());
131 EXPECT_EQ("steps(3)", 131 EXPECT_EQ("steps(3)",
132 parseTimingFunction("steps(3)", exceptionState)->toString()); 132 parseTimingFunction("steps(3)", exceptionState)->toString());
133 133
134 timingFunctionThrows("steps(3, nowhere)", exceptionState); 134 timingFunctionThrows("steps(3, nowhere)", exceptionState);
135 timingFunctionThrows("steps(-3, end)", exceptionState); 135 timingFunctionThrows("steps(-3, end)", exceptionState);
136 timingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exceptionState); 136 timingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exceptionState);
137 } 137 }
138 138
139 } // namespace blink 139 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698