Debian Codegraph @

rhino/testsrc/tests/ecma/Statements/12.6.2-4.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 gTestfile = '12.6.2-4.js';
7
8 /**
9 File Name: 12.6.2-4.js
10 ECMA Section: 12.6.2 The for Statement
11
12 1. first expression is not present.
13 2. second expression is present
14 3. third expression is present
15
16
17 Author: [email protected]
18 Date: 15 september 1997
19 */
20
21 var SECTION = "12.6.2-4";
22 var VERSION = "ECMA_1";
23 startTest();
24 var TITLE = "The for statement";
25
26 writeHeaderToLog( SECTION + " "+ TITLE);
27
28 new TestCase( SECTION, "for statement", 100, testprogram() );
29
30 test();
31
32 function testprogram() {
33 myVar = 0;
34
35 for ( ; myVar < 100 ; myVar++ ) {
36 }
37
38 return myVar;
39 }