~mbranton/libopenshot/alpha-channel-fix

« back to all changes in this revision

Viewing changes to tests/KeyFrame_Tests.cpp

  • Committer: Jonathan Thomas
  • Date: 2016-09-08 07:33:24 UTC
  • Revision ID: jonathan@openshot.org-20160908073324-65qzdcd014mgs3ug
Adding additional logging to unittests, to help find an issue on certain systems

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
TEST(Keyframe_GetPoint_With_No_Points)
35
35
{
 
36
        cout << "Keyframe_GetPoint_With_No_Points" << endl;
36
37
        // Create an empty keyframe
37
38
        Keyframe k1;
38
39
 
41
42
 
42
43
TEST(Keyframe_GetPoint_With_1_Points)
43
44
{
 
45
        cout << "Keyframe_GetPoint_With_1_Points" << endl;
44
46
        // Create an empty keyframe
45
47
        Keyframe k1;
46
48
        k1.AddPoint(openshot::Point(2,3));
55
57
 
56
58
TEST(Keyframe_AddPoint_With_1_Point)
57
59
{
 
60
        cout << "Keyframe_AddPoint_With_1_Point" << endl;
58
61
        // Create an empty keyframe
59
62
        Keyframe k1;
60
63
        k1.Auto_Handle_Percentage = 0.4f;
67
70
 
68
71
TEST(Keyframe_AddPoint_With_2_Points)
69
72
{
 
73
        cout << "Keyframe_AddPoint_With_2_Points" << endl;
70
74
        // Create an empty keyframe
71
75
        Keyframe k1;
72
76
        k1.Auto_Handle_Percentage = 0.4f;
81
85
 
82
86
TEST(Keyframe_GetValue_For_Bezier_Curve_2_Points)
83
87
{
 
88
        cout << "Keyframe_GetValue_For_Bezier_Curve_2_Points" << endl;
84
89
        // Create a keyframe curve with 2 points
85
90
        Keyframe kf;
86
91
        kf.Auto_Handle_Percentage = 0.4f;
101
106
 
102
107
TEST(Keyframe_GetValue_For_Bezier_Curve_5_Points_40_Percent_Handle)
103
108
{
 
109
        cout << "Keyframe_GetValue_For_Bezier_Curve_5_Points_40_Percent_Handle" << endl;
104
110
        // Create a keyframe curve with 2 points
105
111
        Keyframe kf;
106
112
        kf.Auto_Handle_Percentage = 0.4f;
125
131
 
126
132
TEST(Keyframe_GetValue_For_Bezier_Curve_5_Points_25_Percent_Handle)
127
133
{
 
134
        cout << "Keyframe_GetValue_For_Bezier_Curve_5_Points_25_Percent_Handle" << endl;
128
135
        // Create a keyframe curve with 2 points
129
136
        Keyframe kf;
130
137
        kf.Auto_Handle_Percentage = 0.25f;
149
156
 
150
157
TEST(Keyframe_GetValue_For_Linear_Curve_3_Points)
151
158
{
 
159
        cout << "Keyframe_GetValue_For_Linear_Curve_3_Points" << endl;
152
160
        // Create a keyframe curve with 2 points
153
161
        Keyframe kf;
154
162
        kf.Auto_Handle_Percentage = 0.4f;
170
178
 
171
179
TEST(Keyframe_GetValue_For_Constant_Curve_3_Points)
172
180
{
 
181
        cout << "Keyframe_GetValue_For_Constant_Curve_3_Points" << endl;
173
182
        // Create a keyframe curve with 2 points
174
183
        Keyframe kf;
175
184
        kf.Auto_Handle_Percentage = 0.4f;
192
201
 
193
202
TEST(Keyframe_Check_Direction_and_Repeat_Fractions)
194
203
{
 
204
        cout << "Keyframe_Check_Direction_and_Repeat_Fractions" << endl;
195
205
        // Create a keyframe curve with 2 points
196
206
        Keyframe kf;
197
207
        kf.AddPoint(1, 500);
227
237
 
228
238
TEST(Keyframe_Get_Closest_Point)
229
239
{
 
240
        cout << "Keyframe_Get_Closest_Point" << endl;
230
241
        // Create a keyframe curve with 2 points
231
242
        Keyframe kf;
232
243
        kf.AddPoint(1, 0.0);
246
257
 
247
258
TEST(Keyframe_Scale_Keyframe)
248
259
{
 
260
        cout << "Keyframe_Scale_Keyframe" << endl;
249
261
        // Create a keyframe curve with 2 points
250
262
        Keyframe kf;
251
263
        kf.Auto_Handle_Percentage = 0.4f;
289
301
 
290
302
TEST(Keyframe_Flip_Keyframe)
291
303
{
 
304
        cout << "Keyframe_Flip_Keyframe" << endl;
292
305
        // Create a keyframe curve with 2 points
293
306
        Keyframe kf;
294
307
        kf.Auto_Handle_Percentage = 0.4f;
324
337
 
325
338
TEST(Keyframe_Remove_Duplicate_Point)
326
339
{
 
340
        cout << "Keyframe_Remove_Duplicate_Point" << endl;
327
341
        // Create a keyframe curve with 2 points
328
342
        Keyframe kf;
329
343
        kf.AddPoint(1, 0.0);