| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-233483-2.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 233483; |
| 9 |
var summary = 'Don\'t crash with null properties - Browser only'; |
| 10 |
var actual = 'No Crash'; |
| 11 |
var expect = 'No Crash'; |
| 12 |
|
| 13 |
printBugNumber(BUGNUMBER); |
| 14 |
printStatus (summary); |
| 15 |
|
| 16 |
if (typeof document == 'undefined') |
| 17 |
{ |
| 18 |
reportCompare(expect, actual, summary); |
| 19 |
} |
| 20 |
else |
| 21 |
{ |
| 22 |
|
| 23 |
gDelayTestDriverEnd = true; |
| 24 |
|
| 25 |
actual = 'Crash'; |
| 26 |
window.onload = onLoad; |
| 27 |
} |
| 28 |
|
| 29 |
function onLoad() |
| 30 |
{ |
| 31 |
var a = new Array(); |
| 32 |
var pe; |
| 33 |
var x; |
| 34 |
var s; |
| 35 |
|
| 36 |
setform(); |
| 37 |
|
| 38 |
for (pe=document.getElementById("test"); pe; pe=pe.parentNode) |
| 39 |
{ |
| 40 |
a[a.length] = pe; |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
s = a.toString(); |
| 45 |
|
| 46 |
actual = 'No Crash'; |
| 47 |
|
| 48 |
reportCompare(expect, actual, summary); |
| 49 |
|
| 50 |
gDelayTestDriverEnd = false; |
| 51 |
jsTestDriverEnd(); |
| 52 |
} |
| 53 |
|
| 54 |
function setform() |
| 55 |
{ |
| 56 |
var form = document.body.appendChild(document.createElement('form')); |
| 57 |
var table = form.appendChild(document.createElement('table')); |
| 58 |
var tbody = table.appendChild(document.createElement('tbody')); |
| 59 |
var tr = tbody.appendChild(document.createElement('tr')); |
| 60 |
var td = tr.appendChild(document.createElement('td')) |
| 61 |
var input = td.appendChild(document.createElement('input')); |
| 62 |
|
| 63 |
input.setAttribute('id', 'test'); |
| 64 |
input.setAttribute('value', '1232'); |
| 65 |
|
| 66 |
} |