Debian Codegraph @

js/src/tests/test262/language/white-space/string-horizontal-tab.js

raw
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: HORIZONTAL TAB (U+0009) may occur within strings
6 es5id: 7.2_A2.1_T1
7 description: Use HORIZONTAL TAB(\u0009 and \t)
8 ---*/
9
10 // CHECK#1
11 if (eval("'\u0009str\u0009ing\u0009'") !== "\u0009str\u0009ing\u0009") {
12 throw new Test262Error('#1: eval("\'\\u0009str\\u0009ing\\u0009\'") === "\\u0009str\\u0009ing\\u0009"');
13 }
14
15 //CHECK#2
16 if (eval("'\tstr\ting\t'") !== "\tstr\ting\t") {
17 throw new Test262Error('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"');
18 }
19
20 reportCompare(0, 0);