js/src/tests/test262/ch08/8.6/8.6.2/S8.6.2_A5_T1.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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  * [[Call]] executes code associated with the object
     6  *
     7  * @path ch08/8.6/8.6.2/S8.6.2_A5_T1.js
     8  * @description Call function-property of object, property defined
     9  *  as testScreen = {touch:function(){count++}}
    10  */
    12 this.count=0;
    14 var testScreen = {touch:function(){count++}};
    15 //////////////////////////////////////////////////////////////////////////////
    16 //CHECK#1
    17 testScreen.touch();
    18 if (count !==1) {
    19   $ERROR('#1: this.count=0; testScreen = {touch:function(){count++}}; testScreen.touch(); count === 1. Actual: ' + (count));
    20 }
    21 //
    22 //////////////////////////////////////////////////////////////////////////////
    24 //////////////////////////////////////////////////////////////////////////////
    25 //CHECK#2
    26 testScreen['touch']();
    27 if (count !==2) {
    28   $ERROR('#2: this.count=0; testScreen = {touch:function(){count++}}; testScreen.touch(); testScreen[\'touch\'](); count === 2. Actual: ' + (count));
    29 }
    30 //
    31 //////////////////////////////////////////////////////////////////////////////

mercurial