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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/paint-invalidation-with-reparent-across-frame-boundaries.html

Issue 1988313004: Test pixel results for repaint tests testing selection, etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <iframe id="iframe" srcdoc="<div id='inner-target'>abc</div>"></iframe> 2 <iframe id="iframe" srcdoc="<div id='inner-target'>abc</div>"></iframe>
3 Test that reparenting a text node across frame boundaries invalidates only the n ecessary regions 3 Test that reparenting a text node across frame boundaries invalidates only the n ecessary regions
4 in the source and destination frame. Succeeds if there is no invalidation of the entire root frame. 4 in the source and destination frame. Succeeds if there is no invalidation of the entire root frame.
5 <div id="target"></div> 5 <div id="target"></div>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
7 <script> 7 <script>
8 function repaintTest() { 8 function repaintTest() {
9 var target = document.getElementById("target"); 9 var target = document.getElementById("target");
10 var iframeElement = document.getElementById("iframe"); 10 var iframeElement = document.getElementById("iframe");
11 var textNode = iframeElement.contentDocument.getElementById("inner-target"); 11 var textNode = iframeElement.contentDocument.getElementById("inner-target");
12 target.appendChild(textNode); 12 target.appendChild(textNode);
13 } 13 }
14 onload = runRepaintTest; 14 onload = runRepaintAndPixelTest;
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698