Questions tagged [envjs]

EnvJS is a simulated JavaScript browser

EnvJS is an implementation of a client browser as a scripting environment. In other words, it is a simulated JavaScript browser that can be used for testing purposes. To use EnvJS, you must have a JavaScript engine, such as Rhino and V8, to name a few.

21 questions
0
votes
0 answers

Calling a custom javascript function from within a java program using envjs/rhino?

I am basically trying to do this However the problem here is that the javascript refers to "document" and other terms which can be used with the browser but which when being executed through rhino cause an error. What is (if any) a way around for…
Ashwin
  • 1,102
  • 2
  • 9
  • 30
0
votes
1 answer

Javascript Rhino + JQuery simple script performance issue

Wanted to ask if it's possible today to have a good performance for running javascript in standalone mode with Rhino. I have a performance issue running Rhino, EnvJS + JQuery script. Here is the…
Vladimir
  • 4,622
  • 7
  • 32
  • 55
0
votes
1 answer

how to execute js function with rhino and env.rhino.js ?

Scriptable envGlobals; InputStreamReader envReader = new InputStreamReader(getClass() .getResourceAsStream("env.rhino.js")); // InputStreamReader jqueryReader = new InputStreamReader(getClass() // …
0
votes
1 answer

Rhino and envjs: share Javascript objects with Java application

I'm using rhino and envjs embedded in my java application as described in the envjs guide Java code: import org.mozilla.javascript.Context; import org.mozilla.javascript.ContextFactory; import org.mozilla.javascript.tools.shell.Global; import…
bradvido
  • 2,523
  • 6
  • 29
  • 43
0
votes
1 answer

How to use requireJs with envjs

Can someone give me some hints about how to combine bumblebee with requireJs? BumbleBee combines Rhino, JSpec, Envjs and Ant to provide an "out of the box" JavaScript testing toolkit. Its very usefull for us because it makes a simple…
itinance
  • 9,334
  • 5
  • 44
  • 82
0
votes
1 answer

Java Script MVC steal/buildjs - remove empty .js files

When I try to do build with steal/buildjs of Javascript MVC, envJS silently fail to compress and check JavaScript files for errors. I read documentation for envJS and found there that if in some case you try to build empty .js files envJS will…
user576700
  • 591
  • 1
  • 5
  • 15
1
2