Ok since I just did the commit the logging now is under
http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_ExtLang.js?view=markup

which is a debugging replacement for _Lang.js


Werner


Am 25.05.10 09:21, schrieb Werner Punz:
Ok I forgot here is the link the the respective javascript classes

http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_UnitTest.js?view=markup


http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/_util/_Lang.js?view=markup


the logging is at the absolute bottom of _Lang.js and later will be
moved into its own class to reduce the code for the deployment jsf.js a
little bit more.

Werner



Am 25.05.10 09:17, schrieb Werner Punz:
Am 24.05.10 22:21, schrieb Kito Mann:
Hello,

I'm looking into testing frameworks, and the only info I can find on
MyFaces
Test is the Maven repo: (svn.apache.org/repos/asf/myfaces/test) . Has
anything been written about it?
---
Kito D. Mann | twitter: kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and
consulting
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info |
twitter:
jsfcentral
+1 203-404-4848 x3

Sign up for the JSFCentral newsletter:
http://oi.vresp.com/?fid=ac048d0e17

Hello Kito not directly related but,
I also have added some basic unit testing stuff for our javascripts
which are supposed to be triggered from testing webpages

(see under myfaces/core/_utils/_UnitTest.js
and myfaces/core/_utils/_Lang.js (respectively _ExtLang.js after the
next commit on my side which moves it out into a debugging replacement
class) for the attached logging functionality)

This is very basic but does what you need mostly, I use it myself in
some integration tests which I run before every commit of the
javascripts.

see also http://www.pastebin.org/277823 for a small sample of my unit
tests.

ideally this can be combined with selenium since the logging also works
on a special logging div, if set, directly on a page (it also utilizes
the console if present)


Cheers Werner







Reply via email to