[jQuery] jqMock - mock library for jqUnit / QUnit

2008-08-20 Thread fuzziman
Hi all, 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.

[jQuery] QUnit, jqUnit, and rhino

2008-06-26 Thread fuzziman
I was thinking about modifying testrunner.js (the rhino version) with jqUnit, and getting it run to a point where it will be compatible with the latest QUnit and jqUnit test framework. before I dive in, has anyone done any work on this they'd be able to share, so I won't be reinventing the

[jQuery] Re: QUnit, jqUnit, and rhino

2008-06-26 Thread fuzziman
So excited to see that you are actively working on this John! :-) I can see you've been concentrating on document parsing behavior, while I've just been looking at automated testing in rhino. From my testing perspective, I made a couple of patches: - in test(), wrapping fn() and the next lines

[jQuery] Re: jQuery test suite and jsUnit compatibility

2008-06-21 Thread fuzziman
thanks for the post. i love the idea of having tests in the same module using the same setup and teardown, great idea. Noticed a glitch though. You'll need to call jqUnit.module(this.moduleName) just before jqUnit.test(). Otherwise, you end up with whatever module name was last called, and not

[jQuery] Post Form target into iframe, are there any events triggered?

2008-03-03 Thread fuzziman
More of a general JS questions for all the JS gurus who listen to this forum! I am posting a form into a hidden iframe: form method=post action=... target=postFrame ... input type=submit value=Submit / /form iframe name=postFrame style=.../iframe Is there an easy way to tell that the iframe

[jQuery] Re: Loading dynamic JS libraries with jQuery

2008-01-16 Thread fuzziman
Not sure if this is what you mean, but I can load external JS using a bookmarklet. For example, loading jquery onto any arbitary web page: javascript:var

[jQuery] Re: simple newbie js function problem...

2008-01-16 Thread fuzziman
[EMAIL PROTECTED] wrote: Remember that variables declared within functions only exist for that function. Not really... As others mentioned, the crux of the problem is because setInterval is calling force() which refers to the global scope. Try passing in the reference to the function

[jQuery] Re: jQuery.browser.version doesn't recognise IE7 anymore

2008-01-13 Thread fuzziman
I can confirm that this is the case, on a WindowsXP machine with IE7 installed, I have the same userAgent string, so get the same result. There is no problem with my Windows Vista IE7 because the userAgent string is different. NetHawk wrote: Don't know, if this has been observed by

[jQuery] Re: $.load() javascript problems in IE and Safari

2008-01-10 Thread fuzziman
I was wondering if anyone could tell me why firefox still runs the scripts, even though they are not explicitly evaluated... the appendChild by itself seems to be enough to get firefox to run inline scripts which are not on the top level. Jim Marion wrote: The eval is in the domManip. It