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

Unified Diff: third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp

Issue 2527143002: Suspend frame schedulers on a page suspension (Closed)
Patch Set: mod a comment 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/core/dom/MainThreadTaskRunnerTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp b/third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp
index b236f696985a8481e6607882755223d6f18d29ce..4481bcc5866c932e3331fe672dc12c7910275d2b 100644
--- a/third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp
+++ b/third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp
@@ -55,26 +55,6 @@ TEST(MainThreadTaskRunnerTest, PostTask) {
EXPECT_TRUE(isMarked);
}
-TEST(MainThreadTaskRunnerTest, SuspendTask) {
- NullExecutionContext* context = new NullExecutionContext();
- std::unique_ptr<MainThreadTaskRunner> runner =
- MainThreadTaskRunner::create(context);
- bool isMarked = false;
-
- context->setTasksNeedSuspension(true);
- runner->postTask(
- BLINK_FROM_HERE,
- createSameThreadTask(&markBoolean, WTF::unretained(&isMarked)));
- runner->suspend();
- blink::testing::runPendingTasks();
- EXPECT_FALSE(isMarked);
-
- context->setTasksNeedSuspension(false);
- runner->resume();
- blink::testing::runPendingTasks();
- EXPECT_TRUE(isMarked);
-}
-
TEST(MainThreadTaskRunnerTest, RemoveRunner) {
NullExecutionContext* context = new NullExecutionContext();
std::unique_ptr<MainThreadTaskRunner> runner =
« no previous file with comments | « third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698