From d56249d098885844b3c7b349d0f3be68d63724e4 Mon Sep 17 00:00:00 2001 From: "bclary@bclary.com" Date: Thu, 6 Dec 2007 11:23:03 -0800 Subject: [PATCH] JavaScript Tests - update regression test for bug 274152 due to bug 368516, not part of the build --- js/tests/ecma_3/extensions/regress-274152.js | 32 ++++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/js/tests/ecma_3/extensions/regress-274152.js b/js/tests/ecma_3/extensions/regress-274152.js index 24e8c7fbce70..d7074d91287a 100755 --- a/js/tests/ecma_3/extensions/regress-274152.js +++ b/js/tests/ecma_3/extensions/regress-274152.js @@ -54,16 +54,30 @@ function test() printStatus (summary); expect = 'SyntaxError: illegal character'; - try - { - eval("hi\uFEFFthere = 'howdie';"); - } - catch(ex) - { - actual = ex + ''; - } - reportCompare(expect, actual, summary); + var formatcontrolchars = ['\u200C', + '\u200D', + '\u200E', + '\u0600', + '\u0601', + '\u0602', + '\u0603', + '\u06DD', + '\u070F']; + + for (var i = 0; i < formatcontrolchars.length; i++) + { + try + { + eval("hi" + formatcontrolchars[i] + "there = 'howdie';"); + } + catch(ex) + { + actual = ex + ''; + } + + reportCompare(expect, actual, summary + ': ' + i); + } exitFunc ('test'); }