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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/repaint-in-iframe.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on fast/repaint/repaint-in-iframe.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <script src="resources/text-based-repaint.js"></script> 5 <script src="resources/paint-invalidation-test.js"></script>
5 <script> 6 <script>
6 window.onload = function() { 7 window.onload = function() {
7 runRepaintTest(); 8 runPaintInvalidationTest();
8 }; 9 };
9 10
10 function repaintTest() { 11 window.expectedPaintInvalidationObjects = [
12 "LayoutBlockFlow DIV",
13 ];
14 function paintInvalidationTest() {
11 document.getElementsByTagName('iframe')[0] 15 document.getElementsByTagName('iframe')[0]
12 .contentDocument 16 .contentDocument
13 .getElementsByTagName('div')[0] 17 .getElementsByTagName('div')[0]
14 .style 18 .style
15 .backgroundColor = 'green'; 19 .backgroundColor = 'green';
16 } 20 }
17 </script> 21 </script>
18 </head> 22 </head>
19 <div style="height: 400px"></div> 23 <div style="height: 400px"></div>
20 <iframe srcdoc="<div style='height: 50px; width: 50px; background-color: red;'>< /div>"></iframe> 24 <iframe srcdoc="<div style='height: 50px; width: 50px; background-color: red;'>< /div>"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698