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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3
4 <iframe id="frame" style="width: 80px;"></iframe>
5 <script>
6 var jsTestIsAsync = true;
7 var iframe = document.getElementById('frame');
8 var iframeDoc = iframe.contentWindow.document;
9
10 iframeDoc.body.innerHTML = '<img id="srcset" srcset="resources/blue_rect.jpg 90w, resources/image-set-4x.png 120w">';
11
12 xhtmlDoc = document.implementation.createDocument("http://www.w3.org/1999/xh tml", "xhtml", null);
13 xhtmlDoc.documentElement.appendChild(iframeDoc.body);
14 nullDoc = document.implementation.createDocument("", null);
15 nullDoc.adoptNode(xhtmlDoc.documentElement);
16 delete xhtmlDoc;
17 delete nullDoc;
18 setTimeout(function() {
19 iframe.style.width = '100px';
20 try{gc();}catch(e){};
21 setTimeout(finishJSTest, 500);
22 } , 500);
23 </script>
OLDNEW
« 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