[Webkit-unassigned] [Bug 11579] New: Fix test script error when checking the correct result.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 12 00:59:49 PST 2006


           Summary: Fix test script error when checking the correct result.
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: digdog at macports.org

in tests/mozilla/js1_2/version120/boolean-001.js, the test script check the
Bollean object by using RelationalExpression directly:

object = new Bollean(false);
if (object) {
   // is true
} else {
   // is false

Though the object value is false, but the IF statement will apply ToBollean
operator (ECMA 9.3) with Object, and return true always. To fix this, simply
use "EqualityExpression == RelationalExpression" in the IF statement instead:

object = new Bollean(false);
if (object == true) {
   // is true
} else {
   // is false

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list