| Index: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| index 52c28c289d69c58dc38cfbece7c7b633d8781e2a..8f895c2f73f5940d6c0920604674260a583e92ea 100644
|
| --- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| @@ -293,6 +293,11 @@ void WebViewHelper::reset()
|
| m_webViewWidget = nullptr;
|
| }
|
| if (m_webView) {
|
| + // Loading completion is handled asynchronously
|
| + // (FrameLoader::checkCompleted()), so we call runPendingTasks() here
|
| + // to make sure loading is completed and
|
| + // the ASSERT() in the following line is successful.
|
| + testing::runPendingTasks();
|
| ASSERT(m_webView->mainFrame()->isWebRemoteFrame() || !testClientForFrame(m_webView->mainFrame())->isLoading());
|
| m_webView->willCloseLayerTreeView();
|
| m_webView->close();
|
|
|