js/src/tests/test262/ch11/11.13/11.13.1/S11.13.1_A1.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * White Space and Line Terminator between LeftHandSideExpression and "=" or between "=" and AssignmentExpression are allowed
     6  *
     7  * @path ch11/11.13/11.13.1/S11.13.1_A1.js
     8  * @description Checking by using eval
     9  * @noStrict
    10  */
    12 //CHECK#1
    13 if ((eval("x\u0009=\u0009true")) !== true) {
    14   $ERROR('#1: (x\\u0009=\\u0009true) === true');
    15 }
    17 //CHECK#2
    18 if ((eval("x\u000B=\u000Btrue")) !== true) {
    19   $ERROR('#2: (x\\u000B=\\u000Btrue) === true');
    20 }
    22 //CHECK#3
    23 if ((eval("x\u000C=\u000Ctrue")) !== true) {
    24   $ERROR('#3: (x\\u000C=\\u000Ctrue) === true');
    25 }
    27 //CHECK#4
    28 if ((eval("x\u0020=\u0020true")) !== true) {
    29   $ERROR('#4: (x\\u0020=\\u0020true) === true');
    30 }
    32 //CHECK#5
    33 if ((eval("x\u00A0=\u00A0true")) !== true) {
    34   $ERROR('#5: (x\\u00A0=\\u00A0true) === true');
    35 }
    37 //CHECK#6
    38 if ((eval("x\u000A=\u000Atrue")) !== true) {
    39   $ERROR('#6: (x\\u000A=\\u000Atrue) === true');
    40 }
    42 //CHECK#7
    43 if ((eval("x\u000D=\u000Dtrue")) !== true) {
    44   $ERROR('#7: (x\\u000D=\\u000Dtrue) === true');
    45 }
    47 //CHECK#8
    48 if ((eval("x\u2028=\u2028true")) !== true) {
    49   $ERROR('#8: (x\\u2028=\\u2028true) === true');
    50 }
    52 //CHECK#9
    53 if ((eval("x\u2029=\u2029true")) !== true) {
    54   $ERROR('#9: (x\\u2029=\\u2029true) === true');
    55 }
    58 //CHECK#10
    59 if ((eval("x\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029=\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029true")) !== true) {
    60   $ERROR('#10: (x\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029=\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029true) === true');
    61 }

mercurial