tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S7.8.4_A4.2_T5.js (1058B)


      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_T5
      7 description: "NonEscapeSequence :: RUSSIAN CAPITAL ALPHABET"
      8 ---*/
      9 
     10 //CHECK#А-Я
     11 var CharacterCode = [0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042A, 0x042B, 0x042C, 0x042D, 0x042E, 0x042F, 0x0401];
     12 var NonEscapeCharacter = ["\А", "\Б", "\В", "\Г", "\Д", "\Е", "\Ж", "\З", "\И", "\Й", "\К", "\Л", "\М", "\Н", "\О", "\П", "\Р", "\С", "\Т", "\У", "\Ф", "\Х", "\Ц", "\Ч", "\Ш", "\Щ", "\Ъ", "\Ы", "\Ь", "\Э", "\Ю", "\Я", "\Ё"];
     13 for (var index = 0; index <= 32; index++) {
     14  if (String.fromCharCode(CharacterCode[index]) !== NonEscapeCharacter[index]) {
     15    throw new Test262Error('#' + NonEscapeCharacter[index] + ' ');
     16  }
     17 }
     18 
     19 reportCompare(0, 0);