| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 EXPECT_TRUE(scrollAnimator->hasAnimationThatRequiresService()); | 507 EXPECT_TRUE(scrollAnimator->hasAnimationThatRequiresService()); |
| 508 EXPECT_TRUE(result.didScrollX); | 508 EXPECT_TRUE(result.didScrollX); |
| 509 EXPECT_FLOAT_EQ(0.0, result.unusedScrollDeltaX); | 509 EXPECT_FLOAT_EQ(0.0, result.unusedScrollDeltaX); |
| 510 EXPECT_EQ(scrollAnimator->m_runState, | 510 EXPECT_EQ(scrollAnimator->m_runState, |
| 511 ScrollAnimatorCompositorCoordinator::RunState::WaitingToSendToCompositor
); | 511 ScrollAnimatorCompositorCoordinator::RunState::WaitingToSendToCompositor
); |
| 512 EXPECT_EQ(100, scrollAnimator->desiredTargetPosition().x()); | 512 EXPECT_EQ(100, scrollAnimator->desiredTargetPosition().x()); |
| 513 EXPECT_EQ(0, scrollAnimator->desiredTargetPosition().y()); | 513 EXPECT_EQ(0, scrollAnimator->desiredTargetPosition().y()); |
| 514 reset(*scrollAnimator); | 514 reset(*scrollAnimator); |
| 515 | 515 |
| 516 // Forced GC in order to finalize objects depending on the mock object. | 516 // Forced GC in order to finalize objects depending on the mock object. |
| 517 Heap::collectAllGarbage(); | 517 ThreadHeap::collectAllGarbage(); |
| 518 } | 518 } |
| 519 | 519 |
| 520 } // namespace blink | 520 } // namespace blink |
| OLD | NEW |