Index: third_party/WebKit/Source/web/tests/sim/SimTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp |
index fb9aa0510fc93bbe8f79a069e98838deddb61792..9246e64bca7ba2c074c1d37746e35a7815061605 100644 |
--- a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp |
@@ -7,6 +7,7 @@ |
#include "core/dom/Document.h" |
#include "platform/LayoutTestSupport.h" |
#include "platform/scroll/ScrollbarTheme.h" |
+#include "platform/testing/UnitTestHelpers.h" |
#include "public/platform/WebSecurityOrigin.h" |
#include "public/web/WebCache.h" |
#include "web/WebLocalFrameImpl.h" |
@@ -32,6 +33,9 @@ SimTest::SimTest() |
SimTest::~SimTest() |
{ |
+ // Pump the message loop to process the load event. |
+ testing::runPendingTasks(); |
+ |
Document::setThreadedParsingEnabledForTesting(true); |
LayoutTestSupport::setMockThemeEnabledForTest(false); |
ScrollbarTheme::setMockScrollbarsEnabled(false); |