regress-233483.js (1193B)
1 // |reftest| skip-if(xulRuntime.shell) 2 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 //----------------------------------------------------------------------------- 8 var BUGNUMBER = 233483; 9 var summary = 'Don\'t crash with null properties - Browser only'; 10 var actual = 'Crash'; 11 var expect = 'No Crash'; 12 13 printBugNumber(BUGNUMBER); 14 printStatus (summary); 15 16 // delay test driver end 17 gDelayTestDriverEnd = true; 18 window.onload = onLoad; 19 20 function onLoad() { 21 setform(); 22 var a=new Array(); 23 var forms = document.getElementsByTagName('form'); 24 a[a.length]=forms[0]; 25 var s=a.toString(); 26 27 actual = 'No Crash'; 28 29 reportCompare(expect, actual, summary); 30 gDelayTestDriverEnd = false; 31 jsTestDriverEnd(); 32 33 } 34 35 function setform() 36 { 37 var form = document.body.appendChild(document.createElement('form')); 38 var input = form.appendChild(document.createElement('input')); 39 input.setAttribute('id', 'test'); 40 input.setAttribute('value', '1232'); 41 42 var result = form.toString(); 43 44 }