Is there a place to test Spaces Author vs Visitor mode?

I have tested my gadget using a toggle button to imitate the modes, but was wondering if there was a way to see how it would actual work before I release my gadget! Thanks in advance!
[183 byte] By [incendy] at [2008-2-4]
# 1

oops, I just realized it should switch to visitor mode when I go to view space.. must mean my code is really wrong:)

Here is the code, which I believe was taken directly from MS's site

if (p_args.module.getMode() == Web.Gadget.Mode.guest) {
img1.style.visible = false;

incendy at 2007-9-4 > top of Msdn Tech,Gadgets,Web Gadget Development...
# 2

Incendy,

This is the code I use.

if (p_args.module.getMode() == Web.Gadget.Mode.view ) {

} else

{

}

Rodcet at 2007-9-4 > top of Msdn Tech,Gadgets,Web Gadget Development...
# 3
Thank you Rodcet! That did the trick!!
incendy at 2007-9-4 > top of Msdn Tech,Gadgets,Web Gadget Development...