Debian Codegraph @

rhino/testsrc/tests/ecma/Statements/12.6.2-5.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-5.js';
7
8 /**
9 File Name: 12.6.2-5.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 var SECTION = "12.6.2-5";
21 var VERSION = "ECMA_1";
22 startTest();
23 var TITLE = "The for statement";
24
25 writeHeaderToLog( SECTION + " "+ TITLE);
26
27 new TestCase( SECTION, "for statement", 99, testprogram() );
28
29 test();
30
31 function testprogram() {
32 myVar = 0;
33
34 for ( ; myVar < 100 ; myVar++ ) {
35 if (myVar == 99)
36 break;
37 }
38
39 return myVar;
40 }