/* -*- 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.6.js';
START("13.4.4.6 - XML child()");
TEST(1, true, XML.prototype.hasOwnProperty("child"));
emps =
Jim25
Joe20
;
correct =
Jim25 +
Joe20;
TEST(2, correct, emps.child("employee"));
TEST(3, Joe, emps.employee[1].child("name"));
correct = Joe20;
TEST(4, correct, emps.child(1));
END();