Debian Codegraph @

rhino/testsrc/tests/e4x/GC/regress-313952-01.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 = 'regress-313952-01.js';
7
8 var summary = "13.3.5.2 - root QName.uri";
9 var BUGNUMBER = 313952;
10 var actual = '';
11 var expect = '';
12
13 printBugNumber(BUGNUMBER);
14 START(summary);
15 printStatus("This test requires TOO_MUCH_GC");
16
17 var str = " foo:bar".substring(1);
18 expect = new QName(" foo:bar".substring(2), "a").uri;
19
20 var likeString = {
21 toString: function() {
22 var tmp = str;
23 str = null;
24 return tmp;
25 }
26 };
27
28 actual = new QName(likeString, "a").uri;
29
30 printStatus(actual.length);
31
32 printStatus(expect === actual);
33
34 TEST(1, expect, actual);
35
36 END();