Rhino 1.7R3 hangs when using amplesdk with env.js
Used Rhino 1.7R3 and envjs 1.2.13 and ample latest version.
- Create js file named file.js
- content : load('env.rhino.js'); window.onload = function () {console.log('loaded);}; window.onunload = function () {console.log('unloaded');}; window.location = 'file.html';
- 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.
What is env.rhino.js? What shall be file.html? Where is Ample SDK?
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