| Index: third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
|
| index efc91a8b4a33ff40396cb4b970da133a8b2698fb..80bef5dc37fe3e6747582d490689f2d966ca57d0 100644
|
| --- a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
|
| @@ -2,6 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "core/loader/DocumentLoader.h"
|
| +
|
| +#include "core/page/Page.h"
|
| #include "platform/testing/URLTestHelpers.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebURLLoaderClient.h"
|
| @@ -167,4 +170,10 @@ TEST_F(DocumentLoaderTest, MultiChunkWithReentrancy)
|
| m_webViewHelper.reset();
|
| }
|
|
|
| +TEST_F(DocumentLoaderTest, isCommittedButEmpty)
|
| +{
|
| + WebViewImpl* webViewImpl = m_webViewHelper.initializeAndLoad("about:blank", true);
|
| + EXPECT_TRUE(toLocalFrame(webViewImpl->page()->mainFrame())->loader().documentLoader()->isCommittedButEmpty());
|
| +}
|
| +
|
| } // namespace blink
|
|
|