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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/layer-full-repaint.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/layer-full-repaint.html -->
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd"> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head> 4 <head>
4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13655</title> 5 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13655</title>
5 <style type="text/css"> 6 <style type="text/css">
6 div { 7 div {
7 position: relative; 8 position: relative;
8 height: 100px; 9 height: 100px;
9 width: 100px; 10 width: 100px;
10 background-color: red; 11 background-color: red;
11 } 12 }
12 13
13 div.selected { 14 div.selected {
14 background-color: green; 15 background-color: green;
15 text-shadow: red 5px 5px 0; 16 text-shadow: red 5px 5px 0;
16 } 17 }
17 </style> 18 </style>
18 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 19 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script>
19 <script> 20 <script>
20 function repaintTest() 21 window.expectedPaintInvalidationObjects = [
22 "LayoutBlockFlow (relative positioned) DIV id='test' class='selected '",
23 ];
24 function paintInvalidationTest()
21 { 25 {
22 document.getElementById('test').className = "selected"; 26 document.getElementById('test').className = "selected";
23 } 27 }
24 </script> 28 </script>
25 </head> 29 </head>
26 <body onload="runRepaintTest();"> 30 <body onload="runPaintInvalidationTest();">
27 <div id="test"></div> 31 <div id="test"></div>
28 </body> 32 </body>
29 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698