OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <body> | 2 <body> |
3 <script> | 3 <script> |
4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
5 layoutTestController.dumpAsText() | 5 layoutTestController.dumpAsText() |
6 | 6 |
7 document.body.appendChild(document.createElement("p")).appendChild(document.crea
teTextNode("This test passes if it does not cause a crash")); | 7 document.body.appendChild(document.createElement("p")).appendChild(document.crea
teTextNode("This test passes if it does not cause a crash")); |
8 var canvas = document.body.appendChild(document.createElement("canvas")); | 8 var canvas = document.body.appendChild(document.createElement("canvas")); |
9 canvas.width = "400"; | 9 canvas.width = "400"; |
10 canvas.height = "400"; | 10 canvas.height = "400"; |
11 var ctx = canvas.getContext('2d'); | 11 var ctx = canvas.getContext('2d'); |
12 ctx.shadowBlur = 10500000000; | 12 ctx.shadowBlur = 10500000000; |
13 ctx.shadowColor = "green"; | 13 ctx.shadowColor = "green"; |
14 ctx.fillRect(0, 0, 10, 10); | 14 ctx.fillRect(0, 0, 10, 10); |
15 </script> | 15 </script> |
16 </body> | 16 </body> |
17 | 17 |
OLD | NEW |