| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 5431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5442 { | 5442 { |
| 5443 registerMockedHttpURLLoad("link-manifest-change.html"); | 5443 registerMockedHttpURLLoad("link-manifest-change.html"); |
| 5444 | 5444 |
| 5445 ManifestChangeWebFrameClient webFrameClient; | 5445 ManifestChangeWebFrameClient webFrameClient; |
| 5446 FrameTestHelpers::WebViewHelper webViewHelper; | 5446 FrameTestHelpers::WebViewHelper webViewHelper; |
| 5447 webViewHelper.initializeAndLoad(m_baseURL + "link-manifest-change.html", tru
e, &webFrameClient); | 5447 webViewHelper.initializeAndLoad(m_baseURL + "link-manifest-change.html", tru
e, &webFrameClient); |
| 5448 | 5448 |
| 5449 EXPECT_EQ(14, webFrameClient.manifestChangeCount()); | 5449 EXPECT_EQ(14, webFrameClient.manifestChangeCount()); |
| 5450 } | 5450 } |
| 5451 | 5451 |
| 5452 TEST_F(WebFrameTest, ReloadBypassingCache) |
| 5453 { |
| 5454 // Check that a reload ignoring cache on a frame will result in the cache |
| 5455 // policy of the request being set to ReloadBypassingCache. |
| 5456 registerMockedHttpURLLoad("foo.html"); |
| 5457 FrameTestHelpers::WebViewHelper webViewHelper; |
| 5458 webViewHelper.initializeAndLoad(m_baseURL + "foo.html", true); |
| 5459 WebFrame* frame = webViewHelper.webView()->mainFrame(); |
| 5460 FrameTestHelpers::reloadFrameIgnoringCache(frame); |
| 5461 EXPECT_EQ(WebURLRequest::ReloadBypassingCache, frame->dataSource()->request(
).cachePolicy()); |
| 5462 } |
| 5463 |
| 5452 } // namespace | 5464 } // namespace |
| OLD | NEW |