From ce375cd2d1e7d0618ccd7d32eefa8bdc68ccee64 Mon Sep 17 00:00:00 2001 From: "nboyd%atg.com" Date: Tue, 24 Apr 2001 12:55:25 +0000 Subject: [PATCH] Fix test: can only look for FunctionDeclaration syntax. 15.3.4.2 Function.prototype.toString ( ) An implementation-dependent representation of the function is returned. This representation has the syntax of a FunctionDeclaration. Note in particular that the use and placement of white space, line terminators, and semicolons within the representation string is implementation-dependent. git-svn-id: svn://10.0.0.236/trunk@92995 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/tests/js1_4/Regress/function-003.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/js/tests/js1_4/Regress/function-003.js b/mozilla/js/tests/js1_4/Regress/function-003.js index 4847781598a..1cf1ea35c2d 100644 --- a/mozilla/js/tests/js1_4/Regress/function-003.js +++ b/mozilla/js/tests/js1_4/Regress/function-003.js @@ -41,9 +41,9 @@ testcases[tc++] = new TestCase( SECTION, - "StripSpaces(Array.prototype.concat.toString())", - "functionconcat(){[nativecode]}", - StripSpaces(Array.prototype.concat.toString()) ); + "StripSpaces(Array.prototype.concat.toString()).substring(0,17)", + "functionconcat(){", + StripSpaces(Array.prototype.concat.toString()).substring(0,17)); test();