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

Side by Side Diff: Source/core/animation/ElementAnimationTest.cpp

Issue 124103003: Track v8 API changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }; 84 };
85 85
86 TEST_F(AnimationElementAnimationTest, CanStartAnAnimation) 86 TEST_F(AnimationElementAnimationTest, CanStartAnAnimation)
87 { 87 {
88 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 88 v8::Isolate* isolate = v8::Isolate::GetCurrent();
89 v8::HandleScope scope(isolate); 89 v8::HandleScope scope(isolate);
90 v8::Local<v8::Context> context = v8::Context::New(isolate); 90 v8::Local<v8::Context> context = v8::Context::New(isolate);
91 v8::Context::Scope contextScope(context); 91 v8::Context::Scope contextScope(context);
92 92
93 Vector<Dictionary> jsKeyframes; 93 Vector<Dictionary> jsKeyframes;
94 v8::Handle<v8::Object> keyframe1 = v8::Object::New(); 94 v8::Handle<v8::Object> keyframe1 = v8::Object::New(isolate);
95 v8::Handle<v8::Object> keyframe2 = v8::Object::New(); 95 v8::Handle<v8::Object> keyframe2 = v8::Object::New(isolate);
96 96
97 setV8ObjectProperty(keyframe1, "width", "100px"); 97 setV8ObjectProperty(keyframe1, "width", "100px");
98 setV8ObjectProperty(keyframe1, "offset", "0"); 98 setV8ObjectProperty(keyframe1, "offset", "0");
99 setV8ObjectProperty(keyframe2, "width", "0px"); 99 setV8ObjectProperty(keyframe2, "width", "0px");
100 setV8ObjectProperty(keyframe2, "offset", "1"); 100 setV8ObjectProperty(keyframe2, "offset", "1");
101 101
102 jsKeyframes.append(Dictionary(keyframe1, isolate)); 102 jsKeyframes.append(Dictionary(keyframe1, isolate));
103 jsKeyframes.append(Dictionary(keyframe2, isolate)); 103 jsKeyframes.append(Dictionary(keyframe2, isolate));
104 104
105 String value1; 105 String value1;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 startAnimationWithSpecifiedDuration(element.get(), jsKeyframes, duration); 201 startAnimationWithSpecifiedDuration(element.get(), jsKeyframes, duration);
202 202
203 Player* player = document->timeline()->players().at(0).get(); 203 Player* player = document->timeline()->players().at(0).get();
204 204
205 EXPECT_TRUE(player->source()->specified().hasIterationDuration); 205 EXPECT_TRUE(player->source()->specified().hasIterationDuration);
206 EXPECT_EQ(0, player->source()->specified().iterationDuration); 206 EXPECT_EQ(0, player->source()->specified().iterationDuration);
207 } 207 }
208 208
209 } // namespace WebCore 209 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698