| 1 | /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | |
| 6 | gTestfile = '13.4.4.3-02.js'; |
| 7 | |
| 8 | var summary = "13.4.4.3 - XML.appendChild should copy child"; |
| 9 | var BUGNUMBER = 312692; |
| 10 | var actual = ''; |
| 11 | var expect = 'error'; |
| 12 | |
| 13 | printBugNumber(BUGNUMBER); |
| 14 | START(summary); |
| 15 | |
| 16 | try |
| 17 | { |
| 18 | var node = <node/>; |
| 19 | node.appendChild(node); |
| 20 | |
| 21 | var result = String(node); |
| 22 | actual = 'no error'; |
| 23 | } |
| 24 | catch(e) |
| 25 | { |
| 26 | actual = 'error'; |
| 27 | } |
| 28 | TEST(1, expect, actual); |
| 29 | |
| 30 | END(); |