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

Unified Diff: content/browser/wake_lock/wake_lock_browsertest.cc

Issue 2126733002: Make ScreenWakeLock ContextLifecycleObserver instead of LocalFrameLifecycleObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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: content/browser/wake_lock/wake_lock_browsertest.cc
diff --git a/content/browser/wake_lock/wake_lock_browsertest.cc b/content/browser/wake_lock/wake_lock_browsertest.cc
index 59e3ab71e1c0e168d3a7543725beafdf5517eee5..275b5e269bed9dec68d0dc6027190b62e4118a85 100644
--- a/content/browser/wake_lock/wake_lock_browsertest.cc
+++ b/content/browser/wake_lock/wake_lock_browsertest.cc
@@ -261,17 +261,6 @@ IN_PROC_BROWSER_TEST_F(WakeLockTest, KeepLockAfterInPageNavigation) {
EXPECT_TRUE(HasWakeLock());
}
-IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) {
haraken 2016/07/06 08:27:39 This test is testing if the wake lock is gone afte
dcheng 2016/07/06 08:34:42 Hmm, isn't this still a useful thing to test? It's
haraken 2016/07/06 08:51:23 Reload + WaitForLoadStop doesn't detach a document
alogvinov 2016/07/06 08:58:58 Is the problem that we are waiting for the wrong e
dcheng 2016/07/06 09:04:12 Assuming this is doing a "real" reload, the docume
haraken 2016/07/06 09:14:35 shell()->Reload(); fprintf(stderr, "%d\n", shell()
- NavigateToURL(shell(), embedded_test_server()->GetURL("/simple_page.html"));
- ScreenWakeLockInMainFrame();
-
- shell()->Reload();
- WaitForLoadStop(GetWebContents());
-
- // Screen wake lock should be released after reload.
- EXPECT_FALSE(HasWakeLock());
-}
-
IN_PROC_BROWSER_TEST_F(WakeLockTest, BrowserInitiatedFrameNavigation) {
NavigateToURL(shell(),
embedded_test_server()->GetURL("/frame_tree/2-4.html"));

Powered by Google App Engine
This is Rietveld 408576698