Support for Stage Assistants?

2 views
Skip to first unread message

P. Douglas Reeder

unread,
Aug 24, 2010, 8:35:20 PM8/24/10
to jasmine-webos
Is there any support for Stage Assistants? The Scene Assistant I want
to test references a few properties I set on the Scene Assistant, such
as this.controller.stageController.assistant.appMenuAttr. I can add
them manually in the beforeEach() function, but is there a more usual
way?

Davis Frank

unread,
Aug 24, 2010, 10:12:23 PM8/24/10
to jasmin...@googlegroups.com
You will have to setup the state of your test in a beforeEach.

Some tips:

- if you want to keep stage specific data somewhere, I recommend a StageAssistant instead of a StageController (which Mojo owns).
- you can create a stage assistant and attach it (manually) in your before each
- if your data is really app-global instead of stage-global, consider using the AppAssistant or just window (global name space).  You will have to do some hackery to use a specific global object in test v. the actual app, but you can do that with a spy

--dwf
Reply all
Reply to author
Forward
0 new messages