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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move.html

Issue 455333002: ViewportChangeListener deregister and reregister on DOM changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added a test Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move.html b/LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move.html
new file mode 100644
index 0000000000000000000000000000000000000000..b998bd3555c25cbf1a27e4af6cb28977115af28a
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+
+<iframe id="frame" style="width: 80px;"></iframe>
+<script>
+ var jsTestIsAsync = true;
+ var iframe = document.getElementById('frame');
+ var iframeDoc = iframe.contentWindow.document;
+
+ iframeDoc.body.innerHTML = '<img id="srcset" srcset="resources/blue_rect.jpg 90w, resources/image-set-4x.png 120w">';
+
+ xhtmlDoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "xhtml", null);
+ xhtmlDoc.documentElement.appendChild(iframeDoc.body);
+ nullDoc = document.implementation.createDocument("", null);
+ nullDoc.adoptNode(xhtmlDoc.documentElement);
+ delete xhtmlDoc;
+ delete nullDoc;
+ setTimeout(function() {
+ iframe.style.width = '100px';
+ try{gc();}catch(e){};
+ setTimeout(finishJSTest, 500);
+ } , 500);
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-srcset-deregistration-after-move-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698