[Webkit-unassigned] [Bug 62300] IndexedDB test: key sort order for Date objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 8 13:31:11 PDT 2011


--- Comment #3 from David Grogan <dgrogan at chromium.org>  2011-06-08 13:31:11 PST ---
(From update of attachment 96443)
View in context: https://bugs.webkit.org/attachment.cgi?id=96443&action=review


> LayoutTests/storage/indexeddb/key-sort-order-date.html:89
> +            shouldBe("cursor.key.toString()", "sortedKeys[keyIndex]");

So the problem with dates is that shouldBe will try to compare Date objects using == ?  If so you might be able to use shouldEvaluateTo:
shouldEvaluateTo("cursor.key", sortedKeys[keyIndex])

if sortedKeys[keyIndex] holds a date.toString(), the == might call the Date object's toString method before comparing.

It's no big deal, the test is fine as is.  Only do this if you want to play around with javascript.

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

More information about the webkit-unassigned mailing list