thatcher.christop
...@gmail.com> wrote:
> I'm tracking this down right now, should have a patch tomorrow. I created
> a ticket :
> https://github.com/envjs/env-js/issues/5
> Sorry it's still a little rough around the edges, I was running the unit
> tests successfully prerelease but even those arent running. Probably
> simple, I just need to track it down.
> Thatcher
> On Wed, Feb 16, 2011 at 3:52 PM, Jim Fulton <j...@zope.com> wrote:
>> A goal: test JavaScript UI code within a Python interpreter.
>> Use case:
>> - Create a browser-like environment and load an application (html+js).
>> - Generate events.
>> - Make various assertions about the shape of DOM and XHR calls.
>> (I've been using envjs for it's html parser and json implementation
>> for a few weeks now in another project. In that project, I used
>> envjs 1.2 with python-spidermonkey and in the titanium environment.)
>> I'm using python-spidermonkey.
>> If I execute spidermonkey.py and then load spidermonkey.js, my
>> process exits. If I try:
>> bin/envjs spyd t.js
>> where t.js is:
>> window.location = 'http://www.zope.com/';
>> Again, the process exits.
>> (I have to create an empty local_settings.js file to avoid an error,
>> but that's a minor issue afaict.)
>> Am I doing something wrong?
>> From the event loop discussion, I sort of expected that after
>> setting the window location, something would wait for events.
>> Looking at the code, it seems that envjs exists when there
>> aren't more events.
>> What I suspect I want is to emit an event, run the event loop
>> until it stops, make assertions about what happened, rinse, and
>> repeat.
>> Thoughts?
>> I'll keep hacking. I suspect I just want to make exit a noop, but I
>> also suspect I'm missing some basic zen.
>> Jim
>> --
>> Jim Fulton
>> http://www.linkedin.com/in/jimfulton
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Env.js" group.
>> To post to this group, send email to envjs@googlegroups.com.
>> To unsubscribe from this group, send email to
>> envjs+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/envjs?hl=en.
> --
> Christopher Thatcher