| 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 |
$ERROR('#1: String.fromCharCode(0x0008) === "\\b"'); |
| 13 |
} |
| 14 |
|
| 15 |
//CHECK#2 |
| 16 |
if (String.fromCharCode(0x0009) !== "\t") { |
| 17 |
$ERROR('#2: String.fromCharCode(0x0009) === "\\t"'); |
| 18 |
} |
| 19 |
|
| 20 |
//CHECK#3 |
| 21 |
if (String.fromCharCode(0x000A) !== "\n") { |
| 22 |
$ERROR('#3: String.fromCharCode(0x000A) === "\\n"'); |
| 23 |
} |
| 24 |
|
| 25 |
//CHECK#4 |
| 26 |
if (String.fromCharCode(0x000B) !== "\v") { |
| 27 |
$ERROR('#4: String.fromCharCode(0x000B) === "\\v"'); |
| 28 |
} |
| 29 |
|
| 30 |
//CHECK#5 |
| 31 |
if (String.fromCharCode(0x000C) !== "\f") { |
| 32 |
$ERROR('#5: String.fromCharCode(0x000C) === "\\f"'); |
| 33 |
} |
| 34 |
|
| 35 |
//CHECK#6 |
| 36 |
if (String.fromCharCode(0x000D) !== "\r") { |
| 37 |
$ERROR('#6: String.fromCharCode(0x000D) === "\\r"'); |
| 38 |
} |