Thanks for clarifying Jörn, I only looked at the documentation, until now :-)
So I could use compare, although it might change in the future... --Klaus On 2 Okt., 14:56, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Hi Klaus, > > currently equals does only flat comparisons, while the undocumented > compare and compare2 functions to deep checks, one for arrays, one for > objects. I plan to investigate if any test breaks when extending > equals to cover that all. Otherwise an deepEquals may be a good > alternative. Runtime is also an issue: The full jQuery core and UI > testsuites already take quite some time to run, so a default deep > equals has to be fast enough. > > Jörn > > On Thu, Oct 2, 2008 at 11:18 AM, Klaus Hartl <[EMAIL PROTECTED]> wrote: > > > All, > > > I was wondering if it makes sense to extend QUnits equals method so > > that it returns true if I compare two objects (or arrays)? > > > Background: I'm currently writing unit test for tabs, precisely I'm > > testing the default values where there are two options that have an > > empty object respectively array as default value. > > > I could also roll my own equality check or think about using other > > values as default values. > > > Any suggestions? > > > --Klaus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---