OLD | NEW |
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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 474 |
475 TEST(AnimationKeyframeEffectModel, ToKeyframeEffectModel) | 475 TEST(AnimationKeyframeEffectModel, ToKeyframeEffectModel) |
476 { | 476 { |
477 AnimatableValueKeyframeVector keyframes(0); | 477 AnimatableValueKeyframeVector keyframes(0); |
478 AnimatableValueKeyframeEffectModel* effect = AnimatableValueKeyframeEffectMo
del::create(keyframes); | 478 AnimatableValueKeyframeEffectModel* effect = AnimatableValueKeyframeEffectMo
del::create(keyframes); |
479 | 479 |
480 EffectModel* baseEffect = effect; | 480 EffectModel* baseEffect = effect; |
481 EXPECT_TRUE(toAnimatableValueKeyframeEffectModel(baseEffect)); | 481 EXPECT_TRUE(toAnimatableValueKeyframeEffectModel(baseEffect)); |
482 } | 482 } |
483 | 483 |
484 } // namespace | 484 } // namespace blink |
485 | 485 |
486 namespace blink { | 486 namespace blink { |
487 | 487 |
488 class KeyframeEffectModelTest : public ::testing::Test { | 488 class KeyframeEffectModelTest : public ::testing::Test { |
489 public: | 489 public: |
490 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes) | 490 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes) |
491 { | 491 { |
492 return KeyframeEffectModelBase::normalizedKeyframes(keyframes); | 492 return KeyframeEffectModelBase::normalizedKeyframes(keyframes); |
493 } | 493 } |
494 }; | 494 }; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 EXPECT_DOUBLE_EQ(0.6, result[5]->offset()); | 563 EXPECT_DOUBLE_EQ(0.6, result[5]->offset()); |
564 EXPECT_DOUBLE_EQ(0.7, result[6]->offset()); | 564 EXPECT_DOUBLE_EQ(0.7, result[6]->offset()); |
565 EXPECT_DOUBLE_EQ(0.8, result[7]->offset()); | 565 EXPECT_DOUBLE_EQ(0.8, result[7]->offset()); |
566 EXPECT_DOUBLE_EQ(0.85, result[8]->offset()); | 566 EXPECT_DOUBLE_EQ(0.85, result[8]->offset()); |
567 EXPECT_DOUBLE_EQ(0.9, result[9]->offset()); | 567 EXPECT_DOUBLE_EQ(0.9, result[9]->offset()); |
568 EXPECT_DOUBLE_EQ(0.95, result[10]->offset()); | 568 EXPECT_DOUBLE_EQ(0.95, result[10]->offset()); |
569 EXPECT_DOUBLE_EQ(1.0, result[11]->offset()); | 569 EXPECT_DOUBLE_EQ(1.0, result[11]->offset()); |
570 } | 570 } |
571 | 571 |
572 } // namespace blink | 572 } // namespace blink |
OLD | NEW |