Summary: | shouldBe() fails when comparing an array to null | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||||
Component: | Tools / Tests | Assignee: | Alexey Proskuryakov <ap> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | aroben | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Alexey Proskuryakov
2010-03-02 13:48:15 PST
Created attachment 49842 [details]
proposed fix
Comment on attachment 49842 [details]
proposed fix
r=me
Created attachment 49847 [details]
a working fix
Comment on attachment 49847 [details]
a working fix
Is there any value in communicating more information about what happened?
r=me
Committed <http://trac.webkit.org/changeset/55430>. > Is there any value in communicating more information about what happened? Not in this specific case - shouldBe(myArray, null) just needs to silently return false. It may be more interesting in other cases, but it may be not. |