Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/postfix-increment/S11.3.1_A1.2_T1.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: White Space between LeftHandSideExpression and "++" are allowed
6 es5id: 11.3.1_A1.2_T1
7 description: Checking by using eval
8 ---*/
9
10 //CHECK#1
11 if (eval("var x = 0; x\u0009++; x") !== 1) {
12 $ERROR('#1: var x = 0; x\\u0009++; x === 1. Actual: ' + (x));
13 }
14
15 //CHECK#2
16 if (eval("var x = 0; x\u000B++; x") !== 1) {
17 $ERROR('#2: var x = 0; x\\u000B++; x === 1. Actual: ' + (x));
18 }
19
20 //CHECK#3
21 if (eval("var x = 0; x\u000C++; x") !== 1) {
22 $ERROR('#3: var x = 0; x\\u000C++; x === 1. Actual: ' + (x));
23 }
24
25 //CHECK#4
26 if (eval("var x = 0; x\u0020++; x") !== 1) {
27 $ERROR('#4: var x = 0; x\\u0020++; x === 1. Actual: ' + (x));
28 }
29
30 //CHECK#5
31 if (eval("var x = 0; x\u00A0++; x") !== 1) {
32 $ERROR('#5: var x = 0; x\\u00A0++; x === 1. Actual: ' + (x));
33 }
34
35 //CHECK#6
36 if (eval("var x = 0; x\u0009\u000B\u000C\u0020\u00A0++; x") !== 1) {
37 $ERROR('#6: var x = 0; x\\u0009\\u000B\\u000C\\u0020\\u00A0++; x === 1. Actual: ' + (x));
38 }