public
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
adding assert and requiring net/http in browser
tenderlove (author)
Sat May 31 18:01:30 -0700 2008
commit  947c557bb8b54f75e236c09209492dce5d650b36
tree    7ce1cb4a47867d1e9a5a121386cb84f1d2201f6c
parent  c8364cebcf1ef191dac486e31b111fced3a630e6
...
 
1
2
3
...
1
2
3
4
0
@@ -1,3 +1,4 @@
0
+Ruby.require('net/http');
0
 Johnson.require("johnson/browser/xmlw3cdom");
0
 Johnson.require("johnson/browser/xmlsax");
0
 Johnson.require("johnson/browser/env");
...
27
28
29
 
30
31
32
...
27
28
29
30
31
32
33
0
@@ -27,6 +27,7 @@ module Johnson
0
         @runtime.evaluate("window.location = '#{filename}'")
0
       }
0
       doc = @runtime.evaluate('window.document')
0
+      assert_not_nil(doc)
0
     end
0
 
0
     def may_thread(&block)

Comments