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

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

Issue 1854543002: Oilpan: Remove WillBe types (part 7) (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/EffectInput.h" 5 #include "core/animation/EffectInput.h"
6 6
7 #include "bindings/core/v8/Dictionary.h" 7 #include "bindings/core/v8/Dictionary.h"
8 #include "bindings/core/v8/V8BindingForTesting.h" 8 #include "bindings/core/v8/V8BindingForTesting.h"
9 #include "core/animation/AnimationTestHelper.h" 9 #include "core/animation/AnimationTestHelper.h"
10 #include "core/animation/KeyframeEffectModel.h" 10 #include "core/animation/KeyframeEffectModel.h"
(...skipping 11 matching lines...) Expand all
22 AnimationEffectInputTest() 22 AnimationEffectInputTest()
23 : pageHolder(DummyPageHolder::create()) 23 : pageHolder(DummyPageHolder::create())
24 , element(pageHolder->document().createElement("foo", ASSERT_NO_EXCEPTIO N)) 24 , element(pageHolder->document().createElement("foo", ASSERT_NO_EXCEPTIO N))
25 , m_isolate(v8::Isolate::GetCurrent()) 25 , m_isolate(v8::Isolate::GetCurrent())
26 , m_scope(m_isolate) 26 , m_scope(m_isolate)
27 { 27 {
28 pageHolder->document().documentElement()->appendChild(element.get()); 28 pageHolder->document().documentElement()->appendChild(element.get());
29 } 29 }
30 30
31 OwnPtr<DummyPageHolder> pageHolder; 31 OwnPtr<DummyPageHolder> pageHolder;
32 RefPtrWillBePersistent<Element> element; 32 Persistent<Element> element;
33 TrackExceptionState exceptionState; 33 TrackExceptionState exceptionState;
34 v8::Isolate* m_isolate; 34 v8::Isolate* m_isolate;
35 35
36 private: 36 private:
37 V8TestingScope m_scope; 37 V8TestingScope m_scope;
38 }; 38 };
39 39
40 TEST_F(AnimationEffectInputTest, SortedOffsets) 40 TEST_F(AnimationEffectInputTest, SortedOffsets)
41 { 41 {
42 Vector<Dictionary> jsKeyframes; 42 Vector<Dictionary> jsKeyframes;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 jsKeyframes.append(Dictionary(keyframe1, m_isolate, exceptionState)); 141 jsKeyframes.append(Dictionary(keyframe1, m_isolate, exceptionState));
142 jsKeyframes.append(Dictionary(keyframe2, m_isolate, exceptionState)); 142 jsKeyframes.append(Dictionary(keyframe2, m_isolate, exceptionState));
143 jsKeyframes.append(Dictionary(keyframe3, m_isolate, exceptionState)); 143 jsKeyframes.append(Dictionary(keyframe3, m_isolate, exceptionState));
144 144
145 EffectInput::convert(element.get(), EffectModelOrDictionarySequenceOrDiction ary::fromDictionarySequence(jsKeyframes), nullptr, exceptionState); 145 EffectInput::convert(element.get(), EffectModelOrDictionarySequenceOrDiction ary::fromDictionarySequence(jsKeyframes), nullptr, exceptionState);
146 EXPECT_TRUE(exceptionState.hadException()); 146 EXPECT_TRUE(exceptionState.hadException());
147 EXPECT_EQ(V8TypeError, exceptionState.code()); 147 EXPECT_EQ(V8TypeError, exceptionState.code());
148 } 148 }
149 149
150 } // namespace blink 150 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698