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

Side by Side Diff: LayoutTests/fast/canvas/canvas-as-image-incremental-repaint.html

Issue 207383002: Remove repaint.js from layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations Created 6 years, 9 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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 div { 4 div {
5 width:600px; 5 width:600px;
6 height:500px; 6 height:500px;
7 border:2px solid black; 7 border:2px solid black;
8 content: -webkit-canvas(squares); 8 content: -webkit-canvas(squares);
9 } 9 }
10 </style> 10 </style>
11 <script src="resources/repaint.js"></script> 11 <script src="../../resources/run-after-display.js"></script>
12 <script type="application/x-javascript"> 12 <script type="application/x-javascript">
13 if (window.testRunner) {
14 testRunner.dumpAsTextWithPixelResults();
15 testRunner.waitUntilDone();
16 }
13 function repaintTest() 17 function repaintTest()
14 { 18 {
15 var ctx = document.getCSSCanvasContext("2d", "squares", 300, 300); 19 var ctx = document.getCSSCanvasContext("2d", "squares", 300, 300);
16 20
17 ctx.fillStyle = "rgb(200,0,0)"; 21 ctx.fillStyle = "rgb(200,0,0)";
18 ctx.fillRect (10, 10, 100, 100); 22 ctx.fillRect (10, 10, 100, 100);
19 23
20 ctx.fillStyle = "rgba(0, 0, 200, 0.5)"; 24 ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
21 ctx.fillRect (50, 50, 100, 100); 25 ctx.fillRect (50, 50, 100, 100);
26 if (window.testRunner)
27 testRunner.notifyDone();
22 } 28 }
23 </script> 29 </script>
24 </head> 30 </head>
25 <body onload="runRepaintTest()"> 31 <body onload="runAfterDisplay(repaintTest)">
26 <div></div> 32 <div></div>
27 </body> 33 </body>
28 </html> 34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/repaint/shrink-layer.html ('k') | LayoutTests/fast/canvas/canvas-composite-fill-repaint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698