| 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 5378c0ba16128a9e06cc4bd29aa6416aaf29c6ed..c9c8933cd4cbf76b72499f6964338e71a4fa03ab 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->enableMonitorViewportIntersection(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() {
|
|
|