This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 235 - toUpperCaseArray missing "expected" parameter
Summary: toUpperCaseArray missing "expected" parameter
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: ECMAScript Binding (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-25 01:11 UTC by Curt Arnold
Modified: 2003-06-25 05:13 UTC (History)
0 users

See Also:


Attachments

Description Curt Arnold 2003-06-25 01:11:25 UTC
From http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0009.html

Date: Tue, 24 Jun 2003 09:20:34 -0400 (EDT)
From: David Faure <dfaure@trolltech.com>
To: www-dom-ts@w3.org
Cc: pmk@kde.org, staikos@kde.org
Message-Id: <200306241520.07254.dfaure@trolltech.com>
Subject: Test suite JS bug





>From DOMTestCase.js:

function toUpperCaseArray() {
    var upperCased = new Array(expected.length);
    for(var i = 0; i < expected.length; i++) {
        if (expected[i].substring(0,1) != "#") {
            upperCased[i] = expected[i].toUpperCase();
        } else {
            upperCased[i] = expected[i];
        }
    }
    return upperCased;
}

"expected" isn't defined. I think this should be

function toUpperCaseArray(expected) {
...
}

----------

Curt Arnold wrote:

Oops, should have been as you suggested.

Index: DOMTestCase.js
===================================================================
RCS file: /sources/public/2001/DOM-Test-Suite/ecmascript/DOMTestCase.js,v
retrieving revision 1.24
diff -u -r1.24 DOMTestCase.js
--- DOMTestCase.js	20 Jun 2003 20:13:29 -0000	1.24
+++ DOMTestCase.js	25 Jun 2003 05:10:15 -0000
@@ -154,7 +154,7 @@
     }
   }
 
-function toUpperCaseArray() {
+function toUpperCaseArray(expected) {
     var upperCased = new Array(expected.length);
     for(var i = 0; i < expected.length; i++) {
         if (expected[i].substring(0,1) != "#") {