| Index: Source/web/tests/DocumentLoaderTest.cpp
|
| diff --git a/Source/web/tests/DocumentLoaderTest.cpp b/Source/web/tests/DocumentLoaderTest.cpp
|
| index e4b69d77a0f9ec3692708608c734ff456d7b5141..b243d7bb56b8f949b3eb16cb4c9c90d1cb4b0ffe 100644
|
| --- a/Source/web/tests/DocumentLoaderTest.cpp
|
| +++ b/Source/web/tests/DocumentLoaderTest.cpp
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "config.h"
|
| +#include "core/loader/DocumentLoader.h"
|
|
|
| #include "platform/testing/URLTestHelpers.h"
|
| #include "public/platform/Platform.h"
|
| @@ -168,4 +169,11 @@ TEST_F(DocumentLoaderTest, MultiChunkWithReentrancy)
|
| m_webViewHelper.reset();
|
| }
|
|
|
| +TEST_F(DocumentLoaderTest, isCommittedButEmpty)
|
| +{
|
| + FrameTestHelpers::WebViewHelper webViewHelper;
|
| + WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad("about:blank", true);
|
| + EXPECT_TRUE(toLocalFrame(toCoreFrame(webViewImpl->mainFrame()))->loader().documentLoader()->isCommittedButEmpty());
|
| +}
|
| +
|
| } // namespace blink
|
|
|