From a026ed637a8286d46fc50caad92e3ab9396b67c3 Mon Sep 17 00:00:00 2001 From: "bob%bclary.com" Date: Tue, 11 Oct 2005 17:23:03 +0000 Subject: [PATCH] Regression test - wrap test function in try catch block to prevent undefined functions in test case from percolating to the top, no bug, not part of the build git-svn-id: svn://10.0.0.236/trunk@181995 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/tests/ecma_3/Statements/regress-302439.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/js/tests/ecma_3/Statements/regress-302439.js b/mozilla/js/tests/ecma_3/Statements/regress-302439.js index a0d36feda55..fc1e174ada9 100755 --- a/mozilla/js/tests/ecma_3/Statements/regress-302439.js +++ b/mozilla/js/tests/ecma_3/Statements/regress-302439.js @@ -1355,6 +1355,12 @@ function productList(catID,famID) { // addBoxItem(document.Support_Form.Product_ID, 'Zen Portable Media Center', 'DUMMYPREFIX_ZenPMC_Temp|9882'); } -productList(0,0); +try +{ + productList(0,0); +} +catch(e) +{ +} reportCompare(expect, actual, summary);