Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-276103.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 var gTestfile = 'regress-276103.js';
7 //-----------------------------------------------------------------------------
8 // testcase by Gianugo Rabellino <[email protected]>
9 var BUGNUMBER = 276103;
10 var summary = 'link foo and null bytes';
11 var actual = '';
12 var expect = '';
13
14 printBugNumber(BUGNUMBER);
15 printStatus (summary);
16
17
18 var testString = "test|string";
19 var idx = testString.indexOf("|");
20 var link = testString.substring(0, idx);
21 var desc = testString.substring(idx + 1);
22
23 expect = '<a href="test">string</a>';
24 actual = desc.link(link);
25
26 reportCompare(expect, actual, summary);
27