tor-browser

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

S15.1.2.3_A4_T3.js (2524B)


      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: |
      6    Compute the longest prefix of Result(2), which might be Result(2) itself,
      7    which satisfies the syntax of a StrDecimalLiteral
      8 esid: sec-parsefloat-string
      9 description: StrDecimalLiteral not contain HexIntegerLiteral
     10 ---*/
     11 
     12 //CHECK#0
     13 if (parseFloat("0x0") !== 0) {
     14  throw new Test262Error('#0: parseFloat("0x0") === 0. Actual: ' + (parseFloat("0x0")));
     15 }
     16 
     17 //CHECK#1
     18 if (parseFloat("0x1") !== 0) {
     19  throw new Test262Error('#1: parseFloat("0x1") === 0. Actual: ' + (parseFloat("0x1")));
     20 }
     21 
     22 //CHECK#2
     23 if (parseFloat("0x2") !== 0) {
     24  throw new Test262Error('#2: parseFloat("0x2") === 0. Actual: ' + (parseFloat("0x2")));
     25 }
     26 
     27 //CHECK#3
     28 if (parseFloat("0x3") !== 0) {
     29  throw new Test262Error('#3: parseFloat("0x3") === 0. Actual: ' + (parseFloat("0x3")));
     30 }
     31 
     32 //CHECK#4
     33 if (parseFloat("0x4") !== 0) {
     34  throw new Test262Error('#4: parseFloat("0x4") === 0. Actual: ' + (parseFloat("0x4")));
     35 }
     36 
     37 //CHECK#5
     38 if (parseFloat("0x5") !== 0) {
     39  throw new Test262Error('#5: parseFloat("0x5") === 0. Actual: ' + (parseFloat("0x5")));
     40 }
     41 
     42 //CHECK#6
     43 if (parseFloat("0x6") !== 0) {
     44  throw new Test262Error('#6: parseFloat("0x6") === 0. Actual: ' + (parseFloat("0x6")));
     45 }
     46 
     47 //CHECK#7
     48 if (parseFloat("0x7") !== 0) {
     49  throw new Test262Error('#7: parseFloat("0x7") === 0. Actual: ' + (parseFloat("0x7")));
     50 }
     51 
     52 //CHECK#8
     53 if (parseFloat("0x8") !== 0) {
     54  throw new Test262Error('#8: parseFloat("0x8") === 0. Actual: ' + (parseFloat("0x8")));
     55 }
     56 
     57 //CHECK#9
     58 if (parseFloat("0x9") !== 0) {
     59  throw new Test262Error('#9: parseFloat("0x9") === 0. Actual: ' + (parseFloat("0x9")));
     60 }
     61 
     62 //CHECK#A
     63 if (parseFloat("0xA") !== 0) {
     64  throw new Test262Error('#A: parseFloat("0xA") === 0. Actual: ' + (parseFloat("0xA")));
     65 }
     66 
     67 //CHECK#B
     68 if (parseFloat("0xB") !== 0) {
     69  throw new Test262Error('#B: parseFloat("0xB") === 0. Actual: ' + (parseFloat("0xB")));
     70 }
     71 
     72 //CHECK#C
     73 if (parseFloat("0xC") !== 0) {
     74  throw new Test262Error('#C: parseFloat("0xC") === 0. Actual: ' + (parseFloat("0xC")));
     75 }
     76 
     77 //CHECK#D
     78 if (parseFloat("0xD") !== 0) {
     79  throw new Test262Error('#D: parseFloat("0xD") === 0. Actual: ' + (parseFloat("0xD")));
     80 }
     81 
     82 //CHECK#E
     83 if (parseFloat("0xE") !== 0) {
     84  throw new Test262Error('#E: parseFloat("0xE") === 0. Actual: ' + (parseFloat("0xE")));
     85 }
     86 
     87 //CHECK#F
     88 if (parseFloat("0xF") !== 0) {
     89  throw new Test262Error('#F: parseFloat("0xF") === 0. Actual: ' + (parseFloat("0xF")));
     90 }
     91 
     92 reportCompare(0, 0);