Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhino 1.7R3 hangs when using amplesdk with env.js #129

Open
shock01 opened this issue Mar 2, 2012 · 2 comments
Open

Rhino 1.7R3 hangs when using amplesdk with env.js #129

shock01 opened this issue Mar 2, 2012 · 2 comments

Comments

@shock01
Copy link

shock01 commented Mar 2, 2012

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.

@ilinsky
Copy link
Member

ilinsky commented Mar 18, 2012

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

@shock01
Copy link
Author

shock01 commented Mar 18, 2012

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:
#129 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants