Really sorry -- I replied to the group and forgot to change the subject line.
Thanks for the link. Sam On Tue, Feb 24, 2009 at 2:18 PM, John Resig <[email protected]> wrote: > > Umm - this seems to be pretty off-topic for the current thread. But > the Env.js stuff in jQuery core is very old at this point. > > I recommend that you visit the Env.js google group: > http://groups.google.com/group/envjs > > And grab the code from the current, active, fork: > http://github.com/thatcher/env-js > > --John > > > > On Tue, Feb 24, 2009 at 8:57 AM, Sam Dutton <[email protected]> wrote: > > I want to set up automated tests with QUnit as part of our build process > > (using Ant/Cruise) along the lines of this article: > > http://ejohn.org/projects/bringing-the-browser-to-the-server/. > > > > I've installed Rhino 1.7R1 and downloaded env.js from the above page. > > > > JavaScript code works as expected in the Rhino environment, and > > load('env.js') runs without error, but versions of jQuery from 1.2.5 > onwards > > return errors when loading (see below). > > > > Should I be doing something differently, using a different version of > env.js > > -- or is there a better way to run automated tests? > > > > Sam Dutton > > > > ................................................................... > > > > jQuery 1.2.4 works OK: > > > > /rhino1_7R1$ java -jar js.jar > > Rhino 1.7 release 1 2008 10 20 > > js> load('env.js'); > > js> load('jquery-1.2.4.js'); > > js> > > > > jQuery 1.2.5 does not load: > > > > /rhino1_7R1$ java -jar js.jar > > Rhino 1.7 release 1 2008 10 20 > > js> load('env.js'); > > js> load('jquery-1.2.5.js'); > > js: "jquery-1.2.5.js", line 597: uncaught JavaScript runtime > exception: > > ReferenceError: "document" is not defined. > > at jquery-1.2.5.js:597 > > at jquery-1.2.5.js:1 > > at <stdin>:3 > > js> > > > > jQuery 1.3.2 does not load: > > > > /rhino1_7R1$ java -jar js.jar > > Rhino 1.7 release 1 2008 10 20 > > js> load('env.js'); > > js> load('jquery-1.3.2.js'); > > js: "jquery-1.3.2.js", line 613: uncaught JavaScript runtime > exception: > > ReferenceError: "document" is not defined. > > at jquery-1.3.2.js:613 > > at jquery-1.3.2.js:12 > > at <stdin>:3 > > js> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
