Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-210682.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 /*
7 *
8 * Date: 02 July 2003
9 * SUMMARY: testing line ending with |continue| and only terminated by a CR
10 *
11 * See http://bugzilla.mozilla.org/show_bug.cgi?id=210682
12 *
13 *
14 */
15 //-----------------------------------------------------------------------------
16 var gTestfile = 'regress-210682.js';
17 var UBound = 0;
18 var BUGNUMBER = 210682;
19 var summary = 'testing line ending with |continue| and only terminated by CR';
20 var status = '';
21 var statusitems = [];
22 var actual = '';
23 var actualvalues = [];
24 var expect= '';
25 var expectedvalues = [];
26
27
28 for (i=0; i<100; i++)
29 {
30 if (i%2 == 0) continue
31 this.lasti = i;
32 }
33
34 status = inSection(1);
35 actual = lasti;
36 expect = 99;
37 addThis();
38
39
40
41 //-----------------------------------------------------------------------------
42 test();
43 //-----------------------------------------------------------------------------
44
45
46
47 function addThis()
48 {
49 statusitems[UBound] = status;
50 actualvalues[UBound] = actual;
51 expectedvalues[UBound] = expect;
52 UBound++;
53 }
54
55
56 function test()
57 {
58 enterFunc('test');
59 printBugNumber(BUGNUMBER);
60 printStatus(summary);
61
62 for (var i=0; i<UBound; i++)
63 {
64 reportCompare(expectedvalues[i], actualvalues[i], statusitems[i]);
65 }
66
67 exitFunc ('test');
68 }