Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js b/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
| index ca2911f3fa84e5518b5e31bd96bf366f59df5c75..90b869a404b3f219a2b3e349f5f8476888a1555e 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
| +++ b/third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js |
| @@ -22,6 +22,9 @@ function runTest() { |
| // Right now there is a bug that srcset does not properly deal with dynamic changes to the scale factor, |
| // so to work around that, we must reload the page to get the new image. |
| sessionStorage.pageReloaded = true; |
| + if (window.internals) { |
| + internals.evictAllResources(); |
|
yhirano
2017/04/25 14:47:30
Without this, preloading requets match with Memory
|
| + } |
| document.location.reload(true); |
| } |
| } |