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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ParseTimingFunction("steps(3)", exception_state)->ToString()); 134 ParseTimingFunction("steps(3)", exception_state)->ToString());
135 135
136 TimingFunctionThrows("steps(3, nowhere)", exception_state); 136 TimingFunctionThrows("steps(3, nowhere)", exception_state);
137 TimingFunctionThrows("steps(-3, end)", exception_state); 137 TimingFunctionThrows("steps(-3, end)", exception_state);
138 TimingFunctionThrows("frames(3, end)", exception_state); 138 TimingFunctionThrows("frames(3, end)", exception_state);
139 TimingFunctionThrows("frames(1)", exception_state); 139 TimingFunctionThrows("frames(1)", exception_state);
140 TimingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exception_state); 140 TimingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exception_state);
141 } 141 }
142 142
143 } // namespace blink 143 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698