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

Unified Diff: Source/core/dom/ScriptRunnerTest.cpp

Issue 956333002: Refactor TimeBase to post tasks. Workers to use real Idle tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix a bunch of stuff Created 5 years, 10 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 | « Source/core/Init.cpp ('k') | Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptRunnerTest.cpp
diff --git a/Source/core/dom/ScriptRunnerTest.cpp b/Source/core/dom/ScriptRunnerTest.cpp
index 6ed5b093bf7590f899900ff5b300c29ac8593d5f..4b6505de74748ef6244369528450eda222257500 100644
--- a/Source/core/dom/ScriptRunnerTest.cpp
+++ b/Source/core/dom/ScriptRunnerTest.cpp
@@ -87,12 +87,14 @@ class ScriptRunnerTest : public testing::Test {
public:
void SetUp() override
{
+ Scheduler::shutdown();
Sami 2015/02/27 18:29:52 I wonder if we should have some testing helper for
+
+ m_oldPlatform = Platform::current();
+ Platform::initialize(&m_platform);
m_document = Document::create();
m_element = m_document->createElement("foo", ASSERT_NO_EXCEPTION);
m_scriptRunner = ScriptRunner::create(m_document.get());
- m_oldPlatform = Platform::current();
- Platform::initialize(&m_platform);
m_platform.setShouldYield(false);
m_platform.setShouldYieldEveryOtherTime(false);
}
« no previous file with comments | « Source/core/Init.cpp ('k') | Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698