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_T3.js
8 * @description Call function-property of global object, property defined
9 * as knock=function(){count++}
10 */
12 var count=0;
13 var knock=function(){count++};
14 //////////////////////////////////////////////////////////////////////////////
15 //CHECK#1
16 knock();
17 if (count !==1) {
18 $ERROR('#1: count=0; knock=function(){count++}; knock(); count === 1. Actual: ' + (count));
19 }
20 //
21 //////////////////////////////////////////////////////////////////////////////
23 //////////////////////////////////////////////////////////////////////////////
24 //CHECK#2
25 this['knock']();
26 if (count !==2) {
27 $ERROR('#2: count=0; knock=function(){count++}; knock(); this[\'knock\'](); count === 2. Actual: ' + (count));
28 }
29 //
30 //////////////////////////////////////////////////////////////////////////////