| 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 = 'regress-257679.js'; |
| 8 | |
| 9 | START("Standalone <![CDATA[ .... ]]> should be allowed"); |
| 10 | printBugNumber(257679); |
| 11 | |
| 12 | var x = <![CDATA[ < some & > arbitrary text ]]>; |
| 13 | |
| 14 | var expected = new XML("<![CDATA[ < some & > arbitrary text ]]>"); |
| 15 | |
| 16 | TEST(1, expected, x); |
| 17 | |
| 18 | END(); |