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.
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
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
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
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
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
[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
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
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
9 matches
Mail list logo