| 1 | /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
| 2 | * |
| 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 6 | |
| 7 | gTestfile = '13.5.4.21.js'; |
| 8 | |
| 9 | START("13.5.4.21 - XMLList toXMLString()"); |
| 10 | |
| 11 | TEST(1, true, XMLList.prototype.hasOwnProperty("toXMLString")); |
| 12 | |
| 13 | x = <><alpha>one</alpha></>; |
| 14 | |
| 15 | TEST(2, "<alpha>one</alpha>", x.toXMLString()); |
| 16 | |
| 17 | x = <><alpha>one</alpha><bravo>two</bravo></>; |
| 18 | |
| 19 | TEST(3, "<alpha>one</alpha>\n<bravo>two</bravo>", x.toXMLString()); |
| 20 | |
| 21 | END(); |