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

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: Rebased Created 5 years, 8 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 6a82fffb9ead723fc5aa1ea94860af2a89b330af..9fadb38fcfe7a29e273a5808a2dd5d0839114c8c 100644
--- a/Source/core/dom/ScriptRunnerTest.cpp
+++ b/Source/core/dom/ScriptRunnerTest.cpp
@@ -86,6 +86,10 @@ class ScriptRunnerTest : public testing::Test {
public:
void SetUp() override
{
+ Scheduler::shutdown();
Sami 2015/04/09 10:52:29 Why is this change needed?
alex clarke (OOO till 29th) 2015/04/10 15:29:34 I think this was due to some shutdown problems. F
+
+ 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