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

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: Changed the idle implementation Created 5 years, 9 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: Source/core/dom/ScriptRunnerTest.cpp
diff --git a/Source/core/dom/ScriptRunnerTest.cpp b/Source/core/dom/ScriptRunnerTest.cpp
index 03d2a52b08aa895556f2f240842c360247e80127..50da07066b8fa198696dd5d0c7cd99c6d35589eb 100644
--- a/Source/core/dom/ScriptRunnerTest.cpp
+++ b/Source/core/dom/ScriptRunnerTest.cpp
@@ -88,6 +88,10 @@ class ScriptRunnerTest : public testing::Test {
public:
void SetUp() override
{
+ Scheduler::shutdown();
+
+ m_oldPlatform = Platform::current();
+ Platform::initialize(&m_platform);
m_document = Document::create();
m_element = m_document->createElement("foo", ASSERT_NO_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698