summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/test_shell_test.cc')
-rw-r--r--webkit/tools/test_shell/test_shell_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell_test.cc b/webkit/tools/test_shell/test_shell_test.cc
index 8b433d2..8f8b251 100644
--- a/webkit/tools/test_shell/test_shell_test.cc
+++ b/webkit/tools/test_shell/test_shell_test.cc
@@ -28,7 +28,9 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "webkit/tools/test_shell/test_shell_test.h"
+
#include "base/file_util.h"
+#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/string_util.h"
@@ -56,6 +58,9 @@ void TestShellTest::TearDown() {
test_shell_->LoadURL(L"about:blank");
DestroyWindow(test_shell_->mainWnd());
LayoutTestController::ClearShell();
+
+ // Flush the MessageLoop of any residual tasks.
+ MessageLoop::current()->RunAllPending();
}
void TestShellTest::CreateEmptyWindow() {