| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-372309.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 372309; |
| 9 |
var summary = 'Root new array objects'; |
| 10 |
var actual = 'No Crash'; |
| 11 |
var expect = 'No Crash'; |
| 12 |
|
| 13 |
function test() |
| 14 |
{ |
| 15 |
enterFunc ('test'); |
| 16 |
printBugNumber(BUGNUMBER); |
| 17 |
printStatus (summary); |
| 18 |
|
| 19 |
var width = 600; |
| 20 |
var height = 600; |
| 21 |
|
| 22 |
var img1canvas = document.createElement("canvas"); |
| 23 |
var img2canvas = document.createElement("canvas"); |
| 24 |
|
| 25 |
img1canvas.width = img2canvas.width = width; |
| 26 |
img1canvas.height = img2canvas.height = height; |
| 27 |
img1canvas.getContext("2d").getImageData(0, 0, width, height).data; |
| 28 |
img2canvas.getContext("2d").getImageData(0, 0, width, height).data; |
| 29 |
|
| 30 |
reportCompare(expect, actual, summary); |
| 31 |
gDelayTestDriverEnd = false; |
| 32 |
jsTestDriverEnd(); |
| 33 |
|
| 34 |
exitFunc ('test'); |
| 35 |
} |
| 36 |
|
| 37 |
if (typeof window != 'undefined') |
| 38 |
{ |
| 39 |
|
| 40 |
gDelayTestDriverEnd = true; |
| 41 |
|
| 42 |
window.addEventListener("load", test, false); |
| 43 |
} |
| 44 |
else |
| 45 |
{ |
| 46 |
reportCompare(expect, actual, summary); |
| 47 |
} |
| 48 |
|