You cannot post messages because only members can post, and you are not currently a member.
Description:
Johnson wraps JavaScript in a loving Ruby embrace.
|
|
|
setTimeout, async script loading, and head.js
|
| |
Is there anyway to test scripts that load other scripts asynchronously with head.js(...)? script 1: // ... head.js("/path/to/script2.js", "/path/to/script3.js", callback); // ... I want to test the functionality in the callback function, but it depends on having script2 and script3 loaded.... more »
|
|
state of unstable
|
| |
We're still not out of the woods with the unstable branch. While it
passes the johnson tests, it core dumps elsewhere.
My test right now is one of the specs in capybara -envjs:
smparkes@smp ~/capybara-envjs i386$ spec spec/driver/
envjs_driver_spec.rb
.... WARNIING: [Thu Aug 19 2010 09:31:18 GMT-0700 (PST)] {ENVJS}... more »
|
|
Classes, prototypes, Ruby 1.9.x
|
| |
Hi, Do you happen to have an example of how to define a class (or rather a function/prototype) in JavaScript (e.g. Ruby.Person or whatever) _and_ use that as a class in Ruby? As a side note: There was an example in the RubyConf talk (2008) about adding a method to a Ruby class from JavaScript context... more »
|
|
Sandboxing and untrusted code
|
| |
Is it possible to run untrusted code inside of Johnson. I've removed
Ruby object (Ruby = null) inside of context, but It seems that you can
eval ruby code through RubyLandProxy object. You can replicate this by
running:
js = Johnson::Runtime.new()
js[:proxy] = {:key => 'value'}
js[:Ruby] = nil... more »
|
|
Backtraces
|
| |
The lack of information when Johnson spits out a backtrace is
completely maddening:
Johnson::Error in 'Feature: Gift this (under Javascript) Scenario:
Choosing to gift items and going forward'
b is null
/Library/Ruby/Gems/1.8/gems/en vjs-0.3.6/lib/envjs/static.js: 1218
[JavaScript]
inline:2302 [JavaScript]... more »
|
|
Do still johnson be incompatible with ruby 1.9.x?
|
| |
I had install johnson without problems in my rvm 1.8.7 but when I
tried in 1.9.2 a "conversions.cc:337: error: ‘ruby_errinfo’ was not
declared in this scope" error failed to build gem native extension.
Somebody is working to fix the "node.h" dependency?
Regards
Manuel
|
|
Assertion failed
|
| |
Dear Johnson developers,
while parsing a file with Johnson, the following error occurred:
Assertion failed: (chars = js_InflateString(context->js,
StringValuePtr(file_contents), &length)), function parse_io, file
immutable_node.c, line 51.
I guess it has to do with the encoding of the string being parsed.... more »
|
|
Browse a mutable tree
|
| |
Hello dear Johnson developers and users,
Johnson seems to be a good library to manipulate JS code in a Ruby
program but is still under (active?) development. Therefore, I guess
some functions may not be implemented.
I happened to come across a function that is not mentionned in the
documentation and may not work. Still I do not have any idea to test... more »
|
|
spidermonkey ran out of memory :(
|
| |
We are using Johnson via Harmony to run javascript unit tests in our
Sinatra app. It was all working great until we added our last test
file. Now, the suite ends with either a Segmentation fault in env.js
or a NoMemoryError.
It looks like there is no garbage collection between our tests. Are
there any configuration options in Johnson to increase Spidermonkey... more »
|
|
ruby 1.9.1 compatibility
|
| |
I am working with Rails 3 and Ruby 1.9.1 and wondering what the status
for ruby 1.9.1 compatibility is?
Installation fails when building the native components:
In file included from conversions.c:2:
js_land_proxy.h:11:18: error: node.h: No such file or directory
What can I do to help out?... more »
|
|
|