tor-browser

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

S15.1.2.3_A2_T10.js (1032B)


      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: Operator remove leading StrWhiteSpaceChar
      6 esid: sec-parsefloat-string
      7 description: "StrWhiteSpaceChar :: USP"
      8 ---*/
      9 
     10 //CHECK#
     11 var n;
     12 var uspU = ["\u1680", "\u2000", "\u2001", "\u2002", "\u2003", "\u2004", "\u2005", "\u2006", "\u2007", "\u2008", "\u2009", "\u200A", "\u202F", "\u205F", "\u3000"];
     13 var uspS = ["1680", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "200A", "202F", "205F", "3000"];
     14 for (var index = 0; index < uspU.length; index++) {
     15  if (parseFloat(uspU[index] + "1.1") !== parseFloat("1.1")) {
     16    throw new Test262Error('#1.' + uspS[index] + ' ');
     17  }
     18  if (parseFloat(uspU[index] + uspU[index] + uspU[index] + "1.1") !== parseFloat("1.1")) {
     19    throw new Test262Error('#2.' + uspS[index] + ' ');
     20  }
     21  n = parseFloat(uspU[index]);
     22  if (!(n !== n)) {
     23    throw new Test262Error('#3.' + uspS[index] + ' ');
     24  }
     25 }
     26 
     27 reportCompare(0, 0);