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

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

Issue 1845543002: Rename Heap to ThreadHeap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "core/dom/Element.h" 7 #include "core/dom/Element.h"
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "core/testing/DummyPageHolder.h" 9 #include "core/testing/DummyPageHolder.h"
10 #include "platform/animation/TimingFunction.h" 10 #include "platform/animation/TimingFunction.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 protected: 42 protected:
43 void SetUp() override 43 void SetUp() override
44 { 44 {
45 pageHolder = DummyPageHolder::create(); 45 pageHolder = DummyPageHolder::create();
46 document = &pageHolder->document(); 46 document = &pageHolder->document();
47 } 47 }
48 48
49 void TearDown() override 49 void TearDown() override
50 { 50 {
51 document.release(); 51 document.release();
52 Heap::collectAllGarbage(); 52 ThreadHeap::collectAllGarbage();
53 } 53 }
54 54
55 OwnPtr<DummyPageHolder> pageHolder; 55 OwnPtr<DummyPageHolder> pageHolder;
56 Persistent<Document> document; 56 Persistent<Document> document;
57 TrackExceptionState exceptionState; 57 TrackExceptionState exceptionState;
58 }; 58 };
59 59
60 TEST_F(AnimationAnimationInputHelpersTest, ParseKeyframePropertyAttributes) 60 TEST_F(AnimationAnimationInputHelpersTest, ParseKeyframePropertyAttributes)
61 { 61 {
62 EXPECT_EQ(CSSPropertyLineHeight, keyframeAttributeToCSSProperty("lineHeight" )); 62 EXPECT_EQ(CSSPropertyLineHeight, keyframeAttributeToCSSProperty("lineHeight" ));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 timingFunctionRoundTrips("cubic-bezier(0.1, 5, 0.23, 0)", exceptionState); 99 timingFunctionRoundTrips("cubic-bezier(0.1, 5, 0.23, 0)", exceptionState);
100 100
101 EXPECT_EQ("steps(3, end)", parseTimingFunction("steps(3)", exceptionState)-> toString()); 101 EXPECT_EQ("steps(3, end)", parseTimingFunction("steps(3)", exceptionState)-> toString());
102 102
103 timingFunctionThrows("steps(3, nowhere)", exceptionState); 103 timingFunctionThrows("steps(3, nowhere)", exceptionState);
104 timingFunctionThrows("steps(-3, end)", exceptionState); 104 timingFunctionThrows("steps(-3, end)", exceptionState);
105 timingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exceptionState); 105 timingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exceptionState);
106 } 106 }
107 107
108 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698