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