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

Unified Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegateTest.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/MediaControlsOrientationLockDelegateTest.cpp
diff --git a/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegateTest.cpp b/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegateTest.cpp
index a2a5f88ad450be47151a743dc59bccb0f1fa244f..0990d44f3e655845c58835c34561b8c2496a44f0 100644
--- a/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegateTest.cpp
+++ b/third_party/WebKit/Source/modules/media_controls/MediaControlsOrientationLockDelegateTest.cpp
@@ -140,13 +140,13 @@ class MediaControlsOrientationLockDelegateTest : public ::testing::Test {
Fullscreen::RequestFullscreen(Video());
Fullscreen::From(GetDocument()).DidEnterFullscreen();
- testing::RunPendingTasks();
+ GetDocument().ServiceScriptedAnimations(WTF::MonotonicallyIncreasingTime());
}
void SimulateExitFullscreen() {
Fullscreen::ExitFullscreen(GetDocument());
Fullscreen::From(GetDocument()).DidExitFullscreen();
- testing::RunPendingTasks();
+ GetDocument().ServiceScriptedAnimations(WTF::MonotonicallyIncreasingTime());
}
void SimulateOrientationLock() {

Powered by Google App Engine
This is Rietveld 408576698