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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/compositing-reason-removed.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 compositing/layer-creation/compositing-reason-removed.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <style> 3 <style>
3 #square { 4 #square {
4 background-color: blue; 5 background-color: blue;
5 width: 30px; 6 width: 30px;
6 height: 30px; 7 height: 30px;
7 position: relative; 8 position: relative;
8 -webkit-backface-visibility: hidden; 9 -webkit-backface-visibility: hidden;
9 } 10 }
10
11 #testResults {
12 display: none;
13 }
14 </style> 11 </style>
15 12
16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 13 <script src="resources/paint-invalidation-test.js"></script>
17 <script> 14 <script>
18 function repaintTest() { 15 window.expectedPaintInvalidationObjects = [
16 ];
17 function paintInvalidationTest() {
19 // Remove the div's only compositing reason. This should trigger a repaint. 18 // Remove the div's only compositing reason. This should trigger a repaint.
20 document.getElementById("square").style.webkitBackfaceVisibility = "visible" ; 19 document.getElementById("square").style.webkitBackfaceVisibility = "visible" ;
21 } 20 }
22 runRepaintTest(); 21 runPaintInvalidationTest();
23 </script> 22 </script>
24 23
25 <div id="square"></div> 24 <div id="square"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698