tor-browser

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

S7.8.4_A2.1_T1.js (871B)


      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: Correct interpretation of ENGLISH ALPHABET
      6 es5id: 7.8.4_A2.1_T1
      7 description: Check ENGLISH CAPITAL ALPHABET
      8 ---*/
      9 
     10 //CHECK#A-Z
     11 var unicode = ["\u0041", "\u0042", "\u0043", "\u0044", "\u0045", "\u0046", "\u0047", "\u0048", "\u0049", "\u004A", "\u004B", "\u004C", "\u004D", "\u004E", "\u004F", "\u0050", "\u0051", "\u0052", "\u0053", "\u0054", "\u0055", "\u0056", "\u0057", "\u0058", "\u0059", "\u005A"];
     12 var character = ["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 (unicode[index] !== character[index]) {
     15    throw new Test262Error('#' + character[index] + ' ');
     16  }
     17 }
     18 
     19 reportCompare(0, 0);