Debian Codegraph @

rhino/testsrc/tests/ecma/Statements/12.6.2-1.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-1.js';
7
8 /**
9 File Name: 12.6.2-1.js
10 ECMA Section: 12.6.2 The for Statement
11
12 1. first expression is not present.
13 2. second expression is not present
14 3. third expression is not present
15
16
17 Author: [email protected]
18 Date: 15 september 1997
19 */
20
21 var SECTION = "12.6.2-1";
22 var VERSION = "ECMA_1";
23 startTest();
24 var TITLE = "The for statement";
25
26 writeHeaderToLog( SECTION + " "+ TITLE);
27
28 new TestCase( "12.6.2-1", "for statement", 99, testprogram() );
29
30 test();
31
32
33 function testprogram() {
34 myVar = 0;
35
36 for ( ; ; ) {
37 if ( ++myVar == 99 )
38 break;
39 }
40
41 return myVar;
42 }