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

Side by Side Diff: third_party/WebKit/Source/core/animation/TimingInputTest.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/TimingInput.h" 5 #include "core/animation/TimingInput.h"
6 6
7 #include <v8.h>
7 #include "bindings/core/v8/V8BindingForTesting.h" 8 #include "bindings/core/v8/V8BindingForTesting.h"
8 #include "bindings/core/v8/V8KeyframeEffectOptions.h" 9 #include "bindings/core/v8/V8KeyframeEffectOptions.h"
9 #include "core/animation/AnimationEffectTiming.h" 10 #include "core/animation/AnimationEffectTiming.h"
10 #include "core/animation/AnimationTestHelper.h" 11 #include "core/animation/AnimationTestHelper.h"
11 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include <v8.h>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 Timing applyTimingInputNumber(v8::Isolate* isolate, 17 Timing applyTimingInputNumber(v8::Isolate* isolate,
18 String timingProperty, 18 String timingProperty,
19 double timingPropertyValue, 19 double timingPropertyValue,
20 bool& timingConversionSuccess) { 20 bool& timingConversionSuccess) {
21 v8::Local<v8::Object> timingInput = v8::Object::New(isolate); 21 v8::Local<v8::Object> timingInput = v8::Object::New(isolate);
22 setV8ObjectPropertyAsNumber(isolate, timingInput, timingProperty, 22 setV8ObjectPropertyAsNumber(isolate, timingInput, timingProperty,
23 timingPropertyValue); 23 timingPropertyValue);
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 EXPECT_EQ(controlTiming.fillMode, updatedTiming.fillMode); 350 EXPECT_EQ(controlTiming.fillMode, updatedTiming.fillMode);
351 EXPECT_EQ(controlTiming.iterationStart, updatedTiming.iterationStart); 351 EXPECT_EQ(controlTiming.iterationStart, updatedTiming.iterationStart);
352 EXPECT_EQ(controlTiming.iterationCount, updatedTiming.iterationCount); 352 EXPECT_EQ(controlTiming.iterationCount, updatedTiming.iterationCount);
353 EXPECT_TRUE(std::isnan(updatedTiming.iterationDuration)); 353 EXPECT_TRUE(std::isnan(updatedTiming.iterationDuration));
354 EXPECT_EQ(controlTiming.playbackRate, updatedTiming.playbackRate); 354 EXPECT_EQ(controlTiming.playbackRate, updatedTiming.playbackRate);
355 EXPECT_EQ(controlTiming.direction, updatedTiming.direction); 355 EXPECT_EQ(controlTiming.direction, updatedTiming.direction);
356 EXPECT_EQ(*controlTiming.timingFunction, *updatedTiming.timingFunction); 356 EXPECT_EQ(*controlTiming.timingFunction, *updatedTiming.timingFunction);
357 } 357 }
358 358
359 } // namespace blink 359 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698