Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1968)

Unified Diff: Source/web/tests/DocumentLoaderTest.cpp

Issue 1357763002: DocumentLoader::isCommittedButEmpty is timing-dependent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Guess at fixing CQ faliures Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698