1
// |reftest| pref(javascript.options.xml.content,true) skip-if(Android) silentfail
2
/* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4
/* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9
var summary = "Do not crash creating XML object with long initialiser";
11
var BUGNUMBER = 324422;
12
var actual = 'No Crash';
13
var expect = 'No Crash';
15
printBugNumber(BUGNUMBER);
21
if (typeof document == 'undefined')
23
printStatus ("Expect possible out of memory error");
27
var str = '<fu>x</fu>';
29
for (var icount = 0; icount < 20; icount++)
34
printStatus(str.length);
36
var x = new XML('<root>' + str + '</root>');
38
TEST(1, expect, actual);