]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Statements/dowhile-001.js
2 * File Name: dowhile-001
4 * Description: do...while statements
8 * Author: christine@netscape.com
11 var SECTION
= "dowhile-002";
12 var VERSION
= "ECMA_2";
13 var TITLE
= "do...while with a labeled continue statement";
16 writeHeaderToLog( SECTION
+ " "+ TITLE
);
19 var testcases
= new Array();
21 LabeledContinue( 0, 1 );
22 LabeledContinue( 1, 1 );
23 LabeledContinue( -1, 1 );
24 LabeledContinue( 5, 5 );
28 function LabeledContinue( limit
, expect
) {
34 } while ( i
< limit
);
36 testcases
[tc
++] = new TestCase(
38 "do while ( " + i
+" < " + limit
+" )",