<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/assets/index.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -552,12 +552,12 @@ print = function(txt) { Ruby.puts(txt); };
   
   function makeNode(node){
     if ( node ) {
-      if ( !obj_nodes.containsKey( node ) )
-        obj_nodes.put( node, node.getNodeType() == 
-          Packages.org.w3c.dom.Node.ELEMENT_NODE ?
-            new DOMElement( node ) : new DOMNode( node ) );
+      if ( !obj_nodes['key?']( node ) )
+        obj_nodes[node] = node.getNodeType() == 
+          W3CDOMNode.ELEMENT_NODE ?
+            new DOMElement( node ) : new DOMNode( node );
       
-      return obj_nodes.get(node);
+      return obj_nodes[node];
     } else
       return null;
   }</diff>
      <filename>js/johnson/browser/env.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,7 @@
 require File.expand_path(File.join(File.dirname(__FILE__), &quot;/../helper&quot;))
 
+require 'net/http'
+
 module Johnson
   class BrowserTest &lt; Johnson::TestCase
     def setup
@@ -18,6 +20,15 @@ module Johnson
       assert_equal(uri.to_s, @runtime.evaluate('window.location').to_s)
     end
 
+    def test_set_location_with_url
+      file = File.expand_path(__FILE__) + &quot;/../../assets/index.html&quot;
+      filename = &quot;file://#{File.expand_path(file)}&quot;
+      may_thread {
+        @runtime.evaluate(&quot;window.location = '#{filename}'&quot;)
+      }
+      doc = @runtime.evaluate('window.document')
+    end
+
     def may_thread(&amp;block)
       block.call
       (Thread.list - [Thread.main]).each { |t| t.join }</diff>
      <filename>test/johnson/browser_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>767364fb63a51c30eb43e3ffcebe65b4ac85fcc6</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Patterson</name>
    <email>aaron.patterson@gmail.com</email>
  </author>
  <url>http://github.com/jbarnette/johnson/commit/c46ddad689be0ead9578c946dfcaeb75d8cf7e0c</url>
  <id>c46ddad689be0ead9578c946dfcaeb75d8cf7e0c</id>
  <committed-date>2008-05-31T14:47:13-07:00</committed-date>
  <authored-date>2008-05-31T14:47:13-07:00</authored-date>
  <message>test parsing an html file</message>
  <tree>aaabf41ed0aefc95fc561f62247bbec254ff9c99</tree>
  <committer>
    <name>Aaron Patterson</name>
    <email>aaron.patterson@gmail.com</email>
  </committer>
</commit>
