| 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 02c3b20c2b5974f0416c7737d613eb0c928491ee..adb96c2b70e2de1357e0012a76cea76c8e70dd29 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
|
|
|