| 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/Player.h" | 32 #include "core/animation/Player.h" |
| 33 | 33 |
| 34 #include "core/animation/Animation.h" | 34 #include "core/animation/Animation.h" |
| 35 #include "core/animation/AnimationClock.h" | 35 #include "core/animation/AnimationClock.h" |
| 36 #include "core/animation/DocumentTimeline.h" | 36 #include "core/animation/DocumentTimeline.h" |
| 37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
| 38 #include "core/dom/QualifiedName.h" | 38 #include "core/dom/QualifiedName.h" |
| 39 #include "weborigin/KURL.h" | 39 #include "platform/weborigin/KURL.h" |
| 40 #include <gtest/gtest.h> | 40 #include <gtest/gtest.h> |
| 41 | 41 |
| 42 using namespace WebCore; | 42 using namespace WebCore; |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 | 45 |
| 46 class CoreAnimationPlayerTest : public ::testing::Test { | 46 class CoreAnimationPlayerTest : public ::testing::Test { |
| 47 protected: | 47 protected: |
| 48 virtual void SetUp() | 48 virtual void SetUp() |
| 49 { | 49 { |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 EXPECT_EQ(0, timeToNextEffect); | 295 EXPECT_EQ(0, timeToNextEffect); |
| 296 | 296 |
| 297 updateTimeline(2, &timeToNextEffect); | 297 updateTimeline(2, &timeToNextEffect); |
| 298 EXPECT_EQ(std::numeric_limits<double>::infinity(), timeToNextEffect); | 298 EXPECT_EQ(std::numeric_limits<double>::infinity(), timeToNextEffect); |
| 299 | 299 |
| 300 updateTimeline(3, &timeToNextEffect); | 300 updateTimeline(3, &timeToNextEffect); |
| 301 EXPECT_EQ(std::numeric_limits<double>::infinity(), timeToNextEffect); | 301 EXPECT_EQ(std::numeric_limits<double>::infinity(), timeToNextEffect); |
| 302 } | 302 } |
| 303 | 303 |
| 304 } | 304 } |
| OLD | NEW |