| Index: Source/web/tests/WebFrameTest.cpp
|
| diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
|
| index 890bb5b1ca09794147879f80db02198e4e1c44e2..4844c8a16b67a5442c374136d7e66debf643e792 100644
|
| --- a/Source/web/tests/WebFrameTest.cpp
|
| +++ b/Source/web/tests/WebFrameTest.cpp
|
| @@ -5449,4 +5449,16 @@ TEST_F(WebFrameTest, NotifyManifestChange)
|
| EXPECT_EQ(14, webFrameClient.manifestChangeCount());
|
| }
|
|
|
| +TEST_F(WebFrameTest, ReloadBypassingCache)
|
| +{
|
| + // Check that a reload ignoring cache on a frame will result in the cache
|
| + // policy of the request being set to ReloadBypassingCache.
|
| + registerMockedHttpURLLoad("foo.html");
|
| + FrameTestHelpers::WebViewHelper webViewHelper;
|
| + webViewHelper.initializeAndLoad(m_baseURL + "foo.html", true);
|
| + WebFrame* frame = webViewHelper.webView()->mainFrame();
|
| + FrameTestHelpers::reloadFrameIgnoringCache(frame);
|
| + EXPECT_EQ(WebURLRequest::ReloadBypassingCache, frame->dataSource()->request().cachePolicy());
|
| +}
|
| +
|
| } // namespace
|
|
|