From e1400f904b6e7fef5f619b337cc86adf0b1bc618 Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Mon, 15 Jul 2002 00:29:37 +0000 Subject: [PATCH] Correcting errors in test. See bug 155289. --- js/tests/ecma/String/15.5.4.8-1.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/js/tests/ecma/String/15.5.4.8-1.js b/js/tests/ecma/String/15.5.4.8-1.js index 2afad5ba8709..e5f30394f200 100644 --- a/js/tests/ecma/String/15.5.4.8-1.js +++ b/js/tests/ecma/String/15.5.4.8-1.js @@ -37,8 +37,13 @@ If the separator is not supplied, then the result array contains just one string, which is the string. - Author: christine@netscape.com - Date: 12 november 1997 + Author: christine@netscape.com, pschwartau@netscape.com + Date: 12 November 1997 + Modified: 14 July 2002 + Reason: See http://bugzilla.mozilla.org/show_bug.cgi?id=155289 + ECMA-262 Ed.3 Section 15.5.4.14 + The length property of the split method is 2 +* */ var SECTION = "15.5.4.8-1"; @@ -55,9 +60,9 @@ function getTestCases() { var array = new Array(); var item = 0; - array[item++] = new TestCase( SECTION, "String.prototype.split.length", 1, String.prototype.split.length ); + array[item++] = new TestCase( SECTION, "String.prototype.split.length", 2, String.prototype.split.length ); array[item++] = new TestCase( SECTION, "delete String.prototype.split.length", false, delete String.prototype.split.length ); - array[item++] = new TestCase( SECTION, "delete String.prototype.split.length; String.prototype.split.length", 1, eval("delete String.prototype.split.length; String.prototype.split.length") ); + array[item++] = new TestCase( SECTION, "delete String.prototype.split.length; String.prototype.split.length", 2, eval("delete String.prototype.split.length; String.prototype.split.length") ); // test cases for when split is called with no arguments.