Hi Colin, Really great to hear back from you!
Regarding your question, jqMock can test that functions on one particular object are executed in a particular order (see section on "Ordered and Unordered Expectations" in user guide). However, the ordering is maintained within the mock for that object, so there is currently no support for ordering among multiple mocks. Totally agree about putting jqUnit back into Qunit, as it is much too hard to maintain 2 versions of what is essentially the same codebase. At the moment, I'm not sure whether I should continue with jqMock, considering that you are the only person who has noticed it =) I've spent way too much time on it already, and JS is moving so quickly these days, such much other stuff to try out! Thanks again for the feedback! Keep me posted on how it goes with QUnit. I'm quite familiar with the QUnit codebase so I'd be happy to help out with anything. cheers, Ken -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Colin Clark Sent: Thursday, 4 September 2008 6:30 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jqMock - mock library for jqUnit / QUnit Hey Kenneth, On 20-Aug-08, at 5:54 AM, fuzziman wrote: > I've recently released a mock library for the jqUnit framework. > > It is intended to be a lightweight javascript Mock Framework, and > allows dependent functions such as native alert dialogs to be mocked > and tested in isolation. > > I hope this library can be useful for real life usage. Please have a > look, there's really detailed documentation and a user guide. I'm > looking forward to any code reviews and feedback! > > Hosted on google code at http://code.google.com/p/jqmock/ > http://code.google.com/p/jqmock/ This is really impressive! Very cool stuff, and with excellent documentation. I'll definitely be using it in my tests. A quick question: I'd love to be able to use jqMock to test the sequence of a set of function calls. So, for example, I'd like to be able to test that one function is always called before another function. I've hacked this up in a very simplistic way, but this seems like a perfect use for mocks. Is this possible in the current version of jqMock? And a comment: I've been talking a bit with Jörn Zaefferer about merging anything of interest from jqUnit into QUnit now it is supported as a top-level API. While I haven't heard back from him recently, I'm looking forward to the prospect of jqUnit going away entirely in place of QUnit, since I never intended it as a product in itself. I've offered to help in any way I can. Keep up the good work. I'm looking forward to seeing the new features you add to jqMock in the future! Colin --- Colin Clark Technical Lead, Fluid Project http://fluidproject.org NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Group Limited or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Group Limited does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Group Limited.