/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
gTestfile = '13.4.4.39.js';
START("13.4.4.39 - XML toXMLString");
TEST(1, true, XML.prototype.hasOwnProperty("toXMLString"));
XML.prettyPrinting = false;
x =
one
two
;
TEST(2, "one", x.bravo.toXMLString());
TEST(3, "onetwo", x..bravo.toXMLString());
x =
one
;
TEST(4, "", x.charlie.toXMLString());
x =
one
two
;
TEST(5, "two", x.charlie.toXMLString());
x =
one
two
;
TEST(6, "two", x.charlie.toXMLString());
x =
;
TEST(7, "", x.bravo.toXMLString());
x =
one
two
;
TEST(8, "onetwo", x.bravo.toXMLString());
XML.prettyPrinting = true;
x =
one
two
;
copy = x.bravo.copy();
TEST(9, "one", copy.toXMLString());
x =
one
two
;
TEST(10, "String contains value one from bravo", "String contains value " + x.bravo + " from bravo");
END();