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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change.html

Issue 675853003: Fixed image-sizes-js-change flakiness (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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
Index: LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change.html b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change.html
index 3a6255806b806c079f3694a3b0c822ea08102ef0..4f819bae49e7bcee8ac56b976eb9f31f0af47d32 100644
--- a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change.html
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change.html
@@ -5,6 +5,9 @@
<script>
if (window.testRunner)
testRunner.dumpAsText();
+
+ if (internals)
+ internals.evictAllResources();
function updateSrc() {
var img = document.getElementById("foo");
@@ -16,12 +19,16 @@
}
addEventListener("DOMContentLoaded", function() {
- if (window.testRunner && sessionStorage.pageReloaded)
- testRunner.dumpResourceRequestCallbacks();
updateSrc();
}, false);
addEventListener("load", function() {
shouldBe('currentSrcFileName("foo")', '"image-set-4x.png"');
+ if (internals) {
+ shouldBeTrue('internals.isLoadingFromMemoryCache("resources/image-set-4x.png")');
+ shouldBeFalse('internals.isLoadingFromMemoryCache("../../hidpi/resources/image-set-2x.png")');
+ shouldBeFalse('internals.isLoadingFromMemoryCache("../../hidpi/resources/image-set-1x.png")');
+ shouldBeFalse('internals.isLoadingFromMemoryCache("resources/blue-100-px-square.png")');
+ }
}, false);
</script>
<img id="foo">
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698