Debian Codegraph @

rhino/testsrc/tests/ecma/LexicalConventions/7.8.2-n.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 = '7.8.2-n.js';
7
8 /**
9 File Name: 7.8.2.js
10 ECMA Section: 7.8.2 Examples of Automatic Semicolon Insertion
11 Description: compare some specific examples of the automatic
12 insertion rules in the EMCA specification.
13 Author: [email protected]
14 Date: 15 september 1997
15 */
16
17 var SECTION="7.8.2";
18 var VERSION="ECMA_1"
19 startTest();
20 writeHeaderToLog(SECTION+" "+"Examples of Semicolon Insertion");
21
22
23 // new TestCase( "7.8.2", "{ 1 \n 2 } 3", 3, eval("{ 1 \n 2 } 3") );
24
25 DESCRIPTION = "{ 1 2 } 3";
26 EXPECTED = "error";
27
28 new TestCase( "7.8.2", "{ 1 2 } 3", "error", eval("{1 2 } 3") );
29
30 test();