js/src/tests/test262/ch12/12.6/12.6.1/S12.6.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  * When the production "do Statement while ( Expression )" is evaluated, Statement is evaluated first
     6  *
     7  * @path ch12/12.6/12.6.1/S12.6.1_A1.js
     8  * @description Evaluating various Expressions
     9  */
    11 var __in__do;
    13 do __in__do=1; while ( false );
    15 //////////////////////////////////////////////////////////////////////////////
    16 //CHECK#1
    17 if (__in__do!==1) {
    18 	$ERROR('#1: false evaluates to false');
    19 }
    20 //
    21 //////////////////////////////////////////////////////////////////////////////
    23 do __in__do=2; while ( 0 );
    25 //////////////////////////////////////////////////////////////////////////////
    26 //CHECK#2
    27 if (__in__do!==2) {
    28 	$ERROR('#2: 0 evaluates to false');
    29 }
    30 //
    31 //////////////////////////////////////////////////////////////////////////////
    33 do __in__do=3; while ( "" );
    35 //////////////////////////////////////////////////////////////////////////////
    36 //CHECK#3
    37 if (__in__do!==3) {
    38 	$ERROR('#3: "" evaluates to false');
    39 }
    40 //
    41 //////////////////////////////////////////////////////////////////////////////

mercurial