Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Unified Diff: third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Fix nits. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/public/platform/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698