Debian Codegraph @

rhino/testsrc/tests/ecma/Statements/12.6.2-6.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-6.js';
7
8 /**
9 File Name: 12.6.2-6.js
10 ECMA Section: 12.6.2 The for Statement
11
12 1. first expression is present.
13 2. second expression is not 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-6";
21 var VERSION = "ECMA_1";
22 startTest();
23 var TITLE = "The for statement";
24
25 writeHeaderToLog( SECTION + " "+ TITLE);
26
27 new TestCase( "12.6.2-6", "for statement", 256, testprogram() );
28
29 test();
30
31 function testprogram() {
32 var myVar;
33
34 for ( myVar=2; ; myVar *= myVar ) {
35
36 if (myVar > 100)
37 break;
38 continue;
39 }
40
41 return myVar;
42 }