diff options
Diffstat (limited to 'js/src/tests/test262/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js')
-rw-r--r-- | js/src/tests/test262/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js b/js/src/tests/test262/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js new file mode 100644 index 000000000..8140d2b8e --- /dev/null +++ b/js/src/tests/test262/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js @@ -0,0 +1,40 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * White Space between LeftHandSideExpression and "--" are allowed + * + * @path ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js + * @description Checking by using eval + */ + +//CHECK#1 +if (eval("var x = 0; x\u0009--; x") !== -1) { + $ERROR('#1: var x = 0; x\\u0009--; x === -1. Actual: ' + (x)); +} + +//CHECK#2 +if (eval("var x = 0; x\u000B--; x") !== -1) { + $ERROR('#2: var x = 0; x\\u000B--; x === -1. Actual: ' + (x)); +} + +//CHECK#3 +if (eval("var x = 0; x\u000C--; x") !== -1) { + $ERROR('#3: var x = 0; x\\u000C--; x === -1. Actual: ' + (x)); +} + +//CHECK#4 +if (eval("var x = 0; x\u0020--; x") !== -1) { + $ERROR('#4: var x = 0; x\\u0020--; x === -1. Actual: ' + (x)); +} + +//CHECK#5 +if (eval("var x = 0; x\u00A0--; x") !== -1) { + $ERROR('#5: var x = 0; x\\u00A0--; x === -1. Actual: ' + (x)); +} + +//CHECK#6 +if (eval("var x = 0; x\u0009\u000B\u000C\u0020\u00A0--; x") !== -1) { + $ERROR('#6: var x = 0; x\\u0009\\u000B\\u000C\\u0020\\u00A0--; x === -1. Actual: ' + (x)); +} + |