amplesdk icon indicating copy to clipboard operation
amplesdk copied to clipboard

Rhino 1.7R3 hangs when using amplesdk with env.js

Open shock01 opened this issue 13 years ago • 2 comments

Used Rhino 1.7R3 and envjs 1.2.13 and ample latest version.

  1. Create js file named file.js
  2. content : load('env.rhino.js'); window.onload = function () {console.log('loaded);}; window.onunload = function () {console.log('unloaded');}; window.location = 'file.html';
  3. run it with java -jar js.jar -1 -opt file.js

Result : process hangs and will not end , onunload is not fired Expected Result : process finishes and onunload is fired as expected

Goal is to use amplesdk in automated tests run in rhino.

shock01 avatar Mar 02 '12 11:03 shock01

What is env.rhino.js? What shall be file.html? Where is Ample SDK?

ilinsky avatar Mar 18 '12 20:03 ilinsky

env.rhino.js is part of env.js. EnvJS is used to emulate a headless browser to be used in eg nodejs or rhino. Ample is included same way as you would include it in any normal HTML page. The HTML page is loaded in the rhino javascript engine as mentioned in the bug report. Please check the EnvJs site for more info on how to embed it

Good luck my friend and if you need help pls mail me

Stef

-----Original Message----- From: Sergey Ilinsky [mailto:[email protected]] Sent: Sun 3/18/2012 9:37 PM To: [email protected] Subject: Re: [amplesdk] Rhino 1.7R3 hangs when using amplesdk with env.js (#129)

What is env.rhino.js? What shall be file.html? Where is Ample SDK?


Reply to this email directly or view it on GitHub: https://github.com/clientside/amplesdk/issues/129#issuecomment-4564224

shock01 avatar Mar 18 '12 22:03 shock01