bug659766.js (832B)
1 var gTestcases = new Array; 2 var gTc = gTestcases; 3 function TestCase(n, d, e, a) { 4 this.description=d 5 this.reason='' 6 gTestcases[gTc++]=this 7 } 8 TestCase.prototype.dump=function () { return + toPrinted(this.description) + toPrinted(this.reason) + '\n'; }; 9 function toPrinted(value) { return value=value.replace(/\\n/g, 'NL').replace(/[^\x20-\x7E]+/g, escapeString); } 10 function escapeString (str) { 11 try { 12 err 13 } catch(ex) { } 14 } 15 function jsTestDriverEnd() { 16 for (var i = 0; i < gTestcases.length; i++) 17 gTestcases[i].dump() 18 } 19 var SECTION = "dowhile-007"; 20 DoWhile(); 21 function DoWhile( object ) { return result1=false; } 22 new TestCase( 23 SECTION, 24 "break one: ", 25 result1 26 ); 27 jsTestDriverEnd(); 28 new TestCase( SECTION, "'�O� �:i��'.match(new RegExp('.+'))", [], '�O� �:i��'); 29 jsTestDriverEnd();