~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/tests/e4x/XML/regress-324422-1.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 -*- */
 
3
 
 
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/. */
 
7
 
 
8
 
 
9
var summary = "Do not crash creating XML object with long initialiser";
 
10
 
 
11
var BUGNUMBER = 324422;
 
12
var actual = 'No Crash';
 
13
var expect = 'No Crash';
 
14
 
 
15
printBugNumber(BUGNUMBER);
 
16
START(summary);
 
17
 
 
18
expectExitCode(0);
 
19
expectExitCode(5);
 
20
 
 
21
if (typeof document == 'undefined')
 
22
{
 
23
    printStatus ("Expect possible out of memory error");
 
24
    expectExitCode(0);
 
25
    expectExitCode(5);
 
26
}
 
27
var str = '<fu>x</fu>';
 
28
 
 
29
for (var icount = 0; icount < 20; icount++)
 
30
{
 
31
    str = str + str;
 
32
}
 
33
 
 
34
printStatus(str.length);
 
35
 
 
36
var x = new XML('<root>' + str + '</root>');
 
37
 
 
38
TEST(1, expect, actual);
 
39
 
 
40
END();