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

Unified Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp

Issue 2855843002: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" (Closed)
Patch Set: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" Created 3 years, 7 months 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/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp
diff --git a/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp b/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp
index c727e7962728870d41e8c6ac3a269926b5cc1fd5..1b67035923ccd9a42ee5d63438f153d5ef3104ed 100644
--- a/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp
+++ b/third_party/WebKit/Source/modules/media_controls/MediaControlsRotateToFullscreenDelegateTest.cpp
@@ -563,7 +563,7 @@ TEST_F(MediaControlsRotateToFullscreenDelegateTest,
Fullscreen::RequestFullscreen(*GetDocument().body());
}
testing::RunPendingTasks();
- EXPECT_TRUE(Fullscreen::IsCurrentFullScreenElement(*GetDocument().body()));
+ EXPECT_TRUE(Fullscreen::IsFullscreenElement(*GetDocument().body()));
EXPECT_FALSE(GetVideo().IsFullscreen());
// Play video.
@@ -576,7 +576,7 @@ TEST_F(MediaControlsRotateToFullscreenDelegateTest,
RotateTo(kWebScreenOrientationLandscapePrimary);
// Should not enter fullscreen on video, since document is already fullscreen.
- EXPECT_TRUE(Fullscreen::IsCurrentFullScreenElement(*GetDocument().body()));
+ EXPECT_TRUE(Fullscreen::IsFullscreenElement(*GetDocument().body()));
EXPECT_FALSE(GetVideo().IsFullscreen());
}
@@ -654,7 +654,7 @@ TEST_F(MediaControlsRotateToFullscreenDelegateTest,
Fullscreen::RequestFullscreen(*GetDocument().body());
}
testing::RunPendingTasks();
- EXPECT_TRUE(Fullscreen::IsCurrentFullScreenElement(*GetDocument().body()));
+ EXPECT_TRUE(Fullscreen::IsFullscreenElement(*GetDocument().body()));
EXPECT_FALSE(GetVideo().IsFullscreen());
// Leave video paused (playing is not a requirement to exit fullscreen).
@@ -665,7 +665,7 @@ TEST_F(MediaControlsRotateToFullscreenDelegateTest,
RotateTo(kWebScreenOrientationPortraitPrimary);
// Should not exit fullscreen, since video was not the fullscreen element.
- EXPECT_TRUE(Fullscreen::IsCurrentFullScreenElement(*GetDocument().body()));
+ EXPECT_TRUE(Fullscreen::IsFullscreenElement(*GetDocument().body()));
EXPECT_FALSE(GetVideo().IsFullscreen());
}

Powered by Google App Engine
This is Rietveld 408576698