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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/canvas-resize.html

Issue 2010243002: Remove paint/invalidation/spv2 (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
(Empty)
1 <!-- Based on fast/repaint/canvas-resize.html -->
2 <!DOCTYPE html>
3 <style>
4 canvas {
5 position: absolute;
6 width: 600px;
7 height: 500px;
8 top: 50px;
9 left: 50px;
10 }
11 </style>
12 Tests paint invalidation of canvas when it's resized. Passes if there is a whole green circle.
13 <canvas id="canvas" width="500" height="500"></canvas>
14
15 <script src="resources/paint-invalidation-test.js"></script>
16 <script>
17 function paintInvalidationTest() {
18 document.getElementById('canvas').style.width = '500px';
19 }
20 onload = runPaintInvalidationTest;
21
22 var ctx = document.getElementById('canvas').getContext('2d');
23 ctx.beginPath();
24 ctx.arc(250, 250, 250, 0, 2 * Math.PI);
25 ctx.fillStyle = 'green';
26 ctx.fill();
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698