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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/animation/AnimationPlayer.h" | 32 #include "core/animation/AnimationPlayer.h" |
33 | 33 |
34 #include "core/animation/ActiveAnimations.h" | 34 #include "core/animation/ActiveAnimations.h" |
35 #include "core/animation/Animation.h" | 35 #include "core/animation/Animation.h" |
36 #include "core/animation/AnimationClock.h" | 36 #include "core/animation/AnimationClock.h" |
37 #include "core/animation/AnimationTimeline.h" | 37 #include "core/animation/AnimationTimeline.h" |
38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
| 39 #include "core/dom/ExceptionCode.h" |
39 #include "core/dom/QualifiedName.h" | 40 #include "core/dom/QualifiedName.h" |
40 #include "platform/weborigin/KURL.h" | 41 #include "platform/weborigin/KURL.h" |
41 #include <gtest/gtest.h> | 42 #include <gtest/gtest.h> |
42 | 43 |
43 using namespace blink; | 44 using namespace blink; |
44 | 45 |
45 namespace { | 46 namespace { |
46 | 47 |
47 class AnimationAnimationPlayerTest : public ::testing::Test { | 48 class AnimationAnimationPlayerTest : public ::testing::Test { |
48 protected: | 49 protected: |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 EXPECT_EQ(AnimationPlayer::Idle, player->playStateInternal()); | 883 EXPECT_EQ(AnimationPlayer::Idle, player->playStateInternal()); |
883 EXPECT_TRUE(std::isnan(player->currentTime())); | 884 EXPECT_TRUE(std::isnan(player->currentTime())); |
884 EXPECT_TRUE(std::isnan(player->startTime())); | 885 EXPECT_TRUE(std::isnan(player->startTime())); |
885 player->pause(); | 886 player->pause(); |
886 EXPECT_EQ(AnimationPlayer::Idle, player->playStateInternal()); | 887 EXPECT_EQ(AnimationPlayer::Idle, player->playStateInternal()); |
887 EXPECT_TRUE(std::isnan(player->currentTime())); | 888 EXPECT_TRUE(std::isnan(player->currentTime())); |
888 EXPECT_TRUE(std::isnan(player->startTime())); | 889 EXPECT_TRUE(std::isnan(player->startTime())); |
889 } | 890 } |
890 | 891 |
891 } | 892 } |
OLD | NEW |