js/src/tests/test262/ch07/7.9/S7.9_A5.9_T1.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  * Additive/Substract Operator(A/SO) in combination with itself separated by LT or white spaces
     6  * after automatic semicolon insertion gives valid result
     7  *
     8  * @path ch07/7.9/S7.9_A5.9_T1.js
     9  * @description Try use Variable1 (different combinations of three +) Variable2 construction
    10  */
    12 var x=1, y=1;
    13 var z=
    14 x
    15 +
    16 +
    17 +
    18 y
    20 //////////////////////////////////////////////////////////////////////////////
    21 //CHECK#1
    22 if ((z!==2)&&(y!==1)&&(x!==1)) {
    23 	$ERROR('#1: ');
    24 }
    25 //
    26 //////////////////////////////////////////////////////////////////////////////
    28 z=
    29 x + + + y
    31 //////////////////////////////////////////////////////////////////////////////
    32 //CHECK#2
    33 if ((z!==2)&&(y!==1)&&(x!==1)) {
    34 	$ERROR('');
    35 }
    36 //
    37 //////////////////////////////////////////////////////////////////////////////
    39 z=
    40 x
    41 +    +
    42 +    +
    43 y
    45 //////////////////////////////////////////////////////////////////////////////
    46 //CHECK#3
    47 if ((z!==2)&&(y!==1)&&(x!==1)) {
    48 	$ERROR('');
    49 }
    50 //
    51 //////////////////////////////////////////////////////////////////////////////

mercurial