| OLD | NEW |
| 1 <body> | 1 <body> |
| 2 <p> | 2 <p> |
| 3 The canvas below should show a gradient with zero stops, which according to the
specification is filled with transparant black, ie. not visible. This tests <a h
ref="http://bugs.webkit.org/show_bug.cgi?id=13784">Bug 13784, REGRESSION (r13744
-13750): Crash with empty gradient when drawing to canvas</a></p> | 3 The canvas below should show a gradient with zero stops, which according to the
specification is filled with transparant black, ie. not visible. This tests <a h
ref="http://bugs.webkit.org/show_bug.cgi?id=13784">Bug 13784, REGRESSION (r13744
-13750): Crash with empty gradient when drawing to canvas</a></p> |
| 4 <canvas id="c"></canvas> | 4 <canvas id="c"></canvas> |
| 5 <script src="resources/asyncpaintguard.js"></script> | |
| 6 <script> | 5 <script> |
| 7 window.onload = function () { | 6 window.onload = function () { |
| 8 var ctx = document.getElementById('c').getContext('2d'); | 7 var ctx = document.getElementById('c').getContext('2d'); |
| 9 ctx.fillStyle = ctx.createLinearGradient(0, 0, 0, 50); | 8 ctx.fillStyle = ctx.createLinearGradient(0, 0, 0, 50); |
| 10 ctx.fillRect(0, 0, 300, 150); | 9 ctx.fillRect(0, 0, 300, 150); |
| 11 </script> | 10 </script> |
| 12 </body> | 11 </body> |
| OLD | NEW |