Index: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp |
index b015d0d32b908a2c89dada312b99fbe9b88c92b0..f5b462463907dc05c8c0fedc6c30d420ec85741f 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp |
@@ -665,6 +665,11 @@ TEST_F(FrameFetchContextTest, MainResourceCachePolicy) { |
} |
TEST_F(FrameFetchContextTest, SubResourceCachePolicy) { |
+ // Reset load event state: if the load event is finished, we ignore the |
+ // DocumentLoader load type. |
+ document->open(); |
+ ASSERT_FALSE(document->LoadEventFinished()); |
+ |
// Default case |
ResourceRequest request("http://www.example.com/mock"); |
EXPECT_EQ(WebCachePolicy::kUseProtocolCachePolicy, |