michael@0: function TestCase(n, d, e, a) michael@0: function writeHeaderToLog( string ) {} michael@0: var SECTION = "15.1.2.5-2"; michael@0: for ( var CHARCODE = 0; CHARCODE < 256; CHARCODE += 16 ) { michael@0: new TestCase( SECTION, unescape( "%" + (ToHexString(CHARCODE)).substring(0,1) ) ); michael@0: } michael@0: function ToHexString( n ) { michael@0: var hex = new Array(); michael@0: for ( var mag = 1; Math.pow(16,mag) <= n ; mag++ ) { } michael@0: for ( index = 0, mag -= 1; mag > 0; index++, mag-- ) { } michael@0: var string =""; michael@0: switch ( hex[index] ) { michael@0: case 10: michael@0: string += "A"; michael@0: } michael@0: return string; michael@0: }