From 2eb6b6d5390463809a70d904cd67e3ce88868633 Mon Sep 17 00:00:00 2001 From: "bclary@bclary.com" Date: Fri, 6 Apr 2007 11:46:04 -0700 Subject: [PATCH] JavaScript Test - regression test for bug 373072, update to check for new exception --- js/tests/e4x/XMLList/regress-373072.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/tests/e4x/XMLList/regress-373072.js b/js/tests/e4x/XMLList/regress-373072.js index df8a0618d7aa..d6941a98bfaa 100755 --- a/js/tests/e4x/XMLList/regress-373072.js +++ b/js/tests/e4x/XMLList/regress-373072.js @@ -44,7 +44,15 @@ var expect = ''; printBugNumber (bug); printStatus (summary); -XML.prototype.function::namespace.call(new XMLList()); +try +{ + expect = 'TypeError: cannot call namespace method on an XML list with 0 elements'; + XML.prototype.function::namespace.call(new XMLList()); +} +catch(ex) +{ + actual = ex + ''; +} TEST(1, expect, actual); END();