| Index: third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp b/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
|
| index e5612fbe75e355f65f8b93ef7f9095545f15146b..f4eea917fc8d95939cb979365854367bebd39b90 100644
|
| --- a/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp
|
| @@ -26,7 +26,10 @@ class MediaElementFillingViewportTest : public SimTest {
|
| }
|
|
|
| void checkViewportIntersectionChanged(HTMLMediaElement* element) {
|
| - element->checkViewportIntersectionChanged();
|
| + element->activateViewportIntersectionMonitoring(true);
|
| + EXPECT_TRUE(element->m_checkViewportIntersectionTimer.isActive());
|
| + // TODO(xjz): Mock the time and wait for 1s instead.
|
| + element->checkViewportIntersectionTimerFired(nullptr);
|
| }
|
|
|
| std::unique_ptr<SimRequest> createMainResource() {
|
|
|