tor-browser

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

S7.8.4_A4.1_T1.js (1069B)


      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 :: SingleEscapeSequence"
      6 es5id: 7.8.4_A4.1_T1
      7 description: "SingleEscapeSequence :: one of b f n r t v"
      8 ---*/
      9 
     10 //CHECK#1
     11 if (String.fromCharCode(0x0008) !== "\b") {
     12  throw new Test262Error('#1: String.fromCharCode(0x0008) === "\\b"');
     13 }
     14 
     15 //CHECK#2
     16 if (String.fromCharCode(0x0009) !== "\t") {
     17  throw new Test262Error('#2: String.fromCharCode(0x0009) === "\\t"');
     18 }
     19 
     20 //CHECK#3
     21 if (String.fromCharCode(0x000A) !== "\n") {
     22  throw new Test262Error('#3: String.fromCharCode(0x000A) === "\\n"');
     23 }
     24 
     25 //CHECK#4
     26 if (String.fromCharCode(0x000B) !== "\v") {
     27  throw new Test262Error('#4: String.fromCharCode(0x000B) === "\\v"');
     28 }
     29 
     30 //CHECK#5
     31 if (String.fromCharCode(0x000C) !== "\f") {
     32  throw new Test262Error('#5: String.fromCharCode(0x000C) === "\\f"');
     33 }
     34 
     35 //CHECK#6
     36 if (String.fromCharCode(0x000D) !== "\r") {
     37  throw new Test262Error('#6: String.fromCharCode(0x000D) === "\\r"');
     38 }
     39 
     40 reportCompare(0, 0);