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

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

Issue 2667913002: Revert of Sync requestFullscreen() and exitFullscreen() algorithms with the spec (patchset #3 id:40… (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 5ceb8a0af3a7fcb129e091edcb8fa8c6dc1c0e98..98335a344af401bd880b6e62c101dfff00ba5176 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -1752,7 +1752,6 @@ TEST_P(WebViewTest, FullscreenResetScrollAndScaleFullscreenStyles) {
UserGestureIndicator gesture(DocumentUserGestureToken::create(document));
Fullscreen::requestFullscreen(*element);
webViewImpl->didEnterFullscreen();
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
webViewImpl->updateAllLifecyclePhases();
// Sanity-check. There should be no scrolling possible.
@@ -1766,12 +1765,10 @@ TEST_P(WebViewTest, FullscreenResetScrollAndScaleFullscreenStyles) {
// parameters are reset. The page sets display: none on overflowing elements
// while in fullscreen so if we try to restore before the style and layout
// is applied the offsets will be clamped.
- EXPECT_FALSE(webViewImpl->mainFrameImpl()->frameView()->needsLayout());
webViewImpl->didExitFullscreen();
EXPECT_TRUE(webViewImpl->mainFrameImpl()->frameView()->needsLayout());
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
- EXPECT_EQ(0, webViewImpl->mainFrame()->getScrollOffset().height);
webViewImpl->updateAllLifecyclePhases();
+
EXPECT_EQ(2000, webViewImpl->mainFrame()->getScrollOffset().height);
}
@@ -1796,7 +1793,6 @@ TEST_P(WebViewTest, FullscreenResetScrollAndScaleExitAndReenter) {
UserGestureIndicator gesture(DocumentUserGestureToken::create(document));
Fullscreen::requestFullscreen(*element);
webViewImpl->didEnterFullscreen();
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
webViewImpl->updateAllLifecyclePhases();
// Sanity-check. There should be no scrolling possible.
@@ -1812,7 +1808,6 @@ TEST_P(WebViewTest, FullscreenResetScrollAndScaleExitAndReenter) {
webViewImpl->didExitFullscreen();
Fullscreen::requestFullscreen(*element);
webViewImpl->didEnterFullscreen();
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
webViewImpl->updateAllLifecyclePhases();
// Sanity-check. There should be no scrolling possible.
@@ -1824,7 +1819,6 @@ TEST_P(WebViewTest, FullscreenResetScrollAndScaleExitAndReenter) {
// When we exit now, we should restore the original scroll value.
webViewImpl->didExitFullscreen();
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
webViewImpl->updateAllLifecyclePhases();
EXPECT_EQ(2000, webViewImpl->mainFrame()->getScrollOffset().height);
@@ -1856,8 +1850,6 @@ TEST_P(WebViewTest, EnterFullscreenResetScrollAndScaleState) {
UserGestureIndicator gesture(DocumentUserGestureToken::create(document));
Fullscreen::requestFullscreen(*element);
webViewImpl->didEnterFullscreen();
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
- webViewImpl->updateAllLifecyclePhases();
// Page scale factor must be 1.0 during fullscreen for elements to be sized
// properly.
@@ -1869,7 +1861,6 @@ TEST_P(WebViewTest, EnterFullscreenResetScrollAndScaleState) {
// Confirm that exiting fullscreen restores the parameters.
webViewImpl->didExitFullscreen();
- webViewImpl->beginFrame(WTF::monotonicallyIncreasingTime());
webViewImpl->updateAllLifecyclePhases();
EXPECT_EQ(2.0f, webViewImpl->pageScaleFactor());
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698