XUL Testing Tools
Asked Answered
L

1

8

Are there any tools for testing XUL? I'm using yui test for testing XPCOM. But I can't find any for XUL

Libelee answered 20/8, 2009 at 8:3 Comment(0)
S
5

alt text
(source: clear-code.com)

I am using UxU, which is a reworked version of MozUnit. Though I was initially intimidated by the fact that its documentation is half in Japanese, I've used it for few hours and I already feel like recommending it!

Besides allowing you to test your javascript code within the same environment wherein it will run, it also provides a number of convenient helpers methods to remote-control the browser and automating functionalities such loading URLs, opening Tabs, modifying preferences, accessing files and local storage..

Definitively worth of a try!

Sadoff answered 20/8, 2009 at 20:10 Comment(1)
You say: it "allow[s] you to test your javascript code within the same environment wherein it will run", but this does not happen automatically! You have to call some helper methods to make it happen. clear-code.com/software/uxu/helpers.html.en#windowZeitgeist

© 2022 - 2024 — McMap. All rights reserved.