Chromium Code Reviews| 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); |
| } |