| OLD | NEW |
| 1 <script src="../../resources/testharness.js"></script> |
| 2 <script src="../../resources/testharnessreport.js"></script> |
| 1 | 3 |
| 2 <!doctype html> | 4 <script> |
| 3 <html> | 5 test(function(t) { |
| 4 <body> | 6 var canvas = document.createElement('canvas'); |
| 5 This test passes by not crashing ! | 7 canvas.width = 0; |
| 6 <script> | 8 canvas.height = 0; |
| 7 if (window.testRunner) { | 9 var context = canvas.getContext('2d'); |
| 8 testRunner.dumpAsText(); | 10 if (context.imageSmoothingEnabled) |
| 9 } | 11 context.imageSmoothingEnabled = false; |
| 10 window.onload = function () { | |
| 11 » var canvas = document.createElement('canvas'); | |
| 12 » » canvas.width = 0; | |
| 13 » » canvas.height = 0; | |
| 14 » » var context = canvas.getContext('2d'); | |
| 15 » » if(context.imageSmoothingEnabled) {context.imageSmoothingEnabled
= false;} | |
| 16 }; | |
| 17 </script> | |
| 18 </body> | |
| 19 </html> | |
| 20 | 12 |
| 13 }, 'Test that canvas.imageSmoothingEnabled does not crash when the size of the c
anvas is (0,0).'); |
| 14 </script> |
| OLD | NEW |