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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-srcset-in-iframe-external.html

Issue 674163002: Test that only the right resource is loaded in iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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-srcset-in-iframe-external.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-srcset-in-iframe-external.html b/LayoutTests/fast/dom/HTMLImageElement/image-srcset-in-iframe-external.html
new file mode 100644
index 0000000000000000000000000000000000000000..c7e36fe54b4873d415114c7f692ee36facb573c5
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-srcset-in-iframe-external.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<script>
+var img;
+var jsTestIsAsync = true;
+
+if (window.internals)
+ internals.evictAllResources();
+
+window.addEventListener("message", function() {
+ if (window.internals) {
+ shouldBeFalse('window.internals.isLoadingFromMemoryCache("resources/image-set-4x.png")');
+ shouldBeTrue('window.internals.isLoadingFromMemoryCache("resources/blue_rect.jpg")');
+ }
+ finishJSTest();
+ });
+</script>
+
+<iframe id="frame" style="width: 80px;" src="resources/srcset_iframe.html"></iframe>
+</script>

Powered by Google App Engine
This is Rietveld 408576698