S7.8.4_A4.2_T1.js (925B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: "CharacterEscapeSequnce :: NonEscapeSequence" 6 es5id: 7.8.4_A4.2_T1 7 description: "NonEscapeSequence :: ENGLISH CAPITAL ALPHABET" 8 ---*/ 9 10 //CHECK#A-Z 11 var CharacterCode = [0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005A]; 12 var NonEscapeCharacter = ["\A", "\B", "\C", "\D", "\E", "\F", "\G", "\H", "\I", "\J", "\K", "\L", "\M", "\N", "\O", "\P", "\Q", "\R", "\S", "\T", "\U", "\V", "\W", "\X", "\Y", "\Z"]; 13 for (var index = 0; index <= 25; index++) { 14 if (String.fromCharCode(CharacterCode[index]) !== NonEscapeCharacter[index]) { 15 throw new Test262Error('#' + NonEscapeCharacter[index] + ' '); 16 } 17 } 18 19 reportCompare(0, 0);