1
// |reftest| pref(javascript.options.xml.content,true) skip -- bug 528404 - disable due to random timeouts
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 = 'No Syntax Error when trailing space and XML.ignoreWhitespace ' +
11
var BUGNUMBER = 324688;
12
var actual = 'No Error';
13
var expect = 'No Error';
14
var t; // use global scope to prevent timer from being GC'ed
19
if (typeof Components != 'undefined')
23
netscape.security.PrivilegeManager.
24
enablePrivilege('UniversalXPConnect');
27
observe: function () {
30
printBugNumber(BUGNUMBER);
31
printStatus (summary);
32
printStatus('Browser only: requires UniversalXPConnect');
34
printStatus("XML.ignoreWhitespace=" +
35
XML.ignoreWhitespace);
36
var x = new XML("<a></a> ");
42
print('expect = ' + expect);
43
print('actual = ' + actual);
44
TEST(1, expect, actual);
46
gDelayTestDriverEnd = false;
51
t = Components.classes["@mozilla.org/timer;1"].
52
createInstance(Components.interfaces.nsITimer);
53
t.init(TestObject, 100, t.TYPE_ONE_SHOT);
57
printStatus('Requires UniversalXPConnect');
62
if (typeof window != 'undefined')
64
// delay test driver end
65
gDelayTestDriverEnd = true;
67
window.addEventListener("load", init, false);
71
TEST(1, expect, actual);