<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,11 +3,11 @@ require File.expand_path(File.join(File.dirname(__FILE__), &quot;/../helper&quot;))
 module Johnson
   class PreludeTest &lt; Johnson::TestCase
     def setup
-      @context = Johnson::Context.new
+      @runtime = Johnson::Runtime.new
     end
     
     def test_symbols_are_interned
-      assert(@context.evaluate(&quot;Johnson.symbolize('foo') === Johnson.symbolize('foo')&quot;))
+      assert(@runtime.evaluate(&quot;Johnson.symbolize('foo') === Johnson.symbolize('foo')&quot;))
     end
     
     def test_strings_had_a_to_symbol_method
@@ -15,7 +15,7 @@ module Johnson
     end
     
     def test_string_to_symbol_is_not_enumerable
-      assert(!@context.evaluate(&lt;&lt;-END))
+      assert(!@runtime.evaluate(&lt;&lt;-END))
         var flag = false;
         for (x in &quot;foo&quot;) { if (x == 'toSymbol') flag = true }
         flag
@@ -23,18 +23,18 @@ module Johnson
     end
     
     def test_symbol_to_string
-      assert_equal(&quot;monkey&quot;, @context.evaluate(&quot;Johnson.symbolize('monkey').toString()&quot;))
+      assert_equal(&quot;monkey&quot;, @runtime.evaluate(&quot;Johnson.symbolize('monkey').toString()&quot;))
     end
 
     def test_symbol_inspect
-      assert_equal(&quot;:monkey&quot;, @context.evaluate(&quot;Johnson.symbolize('monkey').inspect()&quot;))
+      assert_equal(&quot;:monkey&quot;, @runtime.evaluate(&quot;Johnson.symbolize('monkey').inspect()&quot;))
     end
     
     def test_all_of_ruby_is_available
-      assert_raise(Johnson::Error) { @context.evaluate(&quot;Ruby.Set.new()&quot;) }
+      assert_raise(Johnson::Error) { @runtime.evaluate(&quot;Ruby.Set.new()&quot;) }
       
-      @context.evaluate(&quot;Ruby.require('set')&quot;)
-      assert_kind_of(Set, @context.evaluate(&quot;Ruby.Set.new()&quot;))
+      @runtime.evaluate(&quot;Ruby.require('set')&quot;)
+      assert_kind_of(Set, @runtime.evaluate(&quot;Ruby.Set.new()&quot;))
     end
     
     def test_require_an_existing_js_file_without_extension
@@ -43,7 +43,7 @@ module Johnson
     
     def test_require_returns_false_the_second_time_around
       assert_js(&quot;Johnson.require('johnson/template')&quot;)
-      assert(!@context.evaluate(&quot;Johnson.require('johnson/template')&quot;))
+      assert(!@runtime.evaluate(&quot;Johnson.require('johnson/template')&quot;))
     end
     
     def test_missing_requires_throw_LoadError</diff>
      <filename>test/johnson/prelude_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,17 +4,17 @@ module Johnson
   module SpiderMonkey
     class ContextTest &lt; Johnson::TestCase
       def setup
-        @context = Johnson::Context.new(Johnson::SpiderMonkey::Context)
+        @runtime = Johnson::Runtime.new(Johnson::SpiderMonkey::Runtime)
       end
       
       def test_wraps_global_unfuckedly
-        assert_same(@context.global, @context.evaluate(&quot;this&quot;))
+        assert_same(@runtime.global, @runtime.evaluate(&quot;this&quot;))
       end
       
-      def test_provides_basic_context_interface
-        assert(@context.respond_to?(:evaluate))
-        assert(@context.respond_to?(:[]))
-        assert(@context.respond_to?(:[]=))
+      def test_provides_basic_runtime_interface
+        assert(@runtime.respond_to?(:evaluate))
+        assert(@runtime.respond_to?(:[]))
+        assert(@runtime.respond_to?(:[]=))
       end
     end
   end</diff>
      <filename>test/johnson/spidermonkey/context_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -58,7 +58,7 @@ module Johnson
       end
 
       def setup
-        @context = Johnson::Context.new(Johnson::SpiderMonkey::Context)
+        @runtime = Johnson::Runtime.new(Johnson::SpiderMonkey::Runtime)
       end
 
       def test_find_constants
@@ -66,14 +66,14 @@ module Johnson
       end
 
       def test_proxies_get_reused
-        @context[&quot;foo&quot;] = @context[&quot;bar&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = @runtime[&quot;bar&quot;] = Foo.new
         assert_js_equal(true, &quot;foo === bar&quot;)
       end
 
       def test_attributes_get_added_to_ruby
-        foo = @context[&quot;foo&quot;] = Foo.new
+        foo = @runtime[&quot;foo&quot;] = Foo.new
         assert !foo.respond_to?(:johnson)
-        @context.evaluate(&quot;foo.johnson = 'explode';&quot;)
+        @runtime.evaluate(&quot;foo.johnson = 'explode';&quot;)
         assert foo.respond_to?(:johnson)
         assert_equal('explode', foo.johnson)
         assert_js_equal('explode', 'foo.johnson')
@@ -81,9 +81,9 @@ module Johnson
       end
 
       def test_assign_function_as_attribute
-        foo = @context[&quot;foo&quot;] = Foo.new
+        foo = @runtime[&quot;foo&quot;] = Foo.new
         assert !foo.respond_to?(:johnson)
-        f = @context.evaluate(&quot;foo.johnson = function() { return 'explode'; }&quot;)
+        f = @runtime.evaluate(&quot;foo.johnson = function() { return 'explode'; }&quot;)
         assert foo.respond_to?(:johnson)
         assert_equal('explode', foo.johnson)
         assert_js_equal('explode', 'foo.johnson()')
@@ -92,115 +92,115 @@ module Johnson
       end
 
       def test_assign_function_as_attribute_with_this
-        foo = @context[&quot;foo&quot;] = Foo.new
-        @context.evaluate(&quot;foo.ex_squared = function(x) { return this.x2(x); }&quot;)
+        foo = @runtime[&quot;foo&quot;] = Foo.new
+        @runtime.evaluate(&quot;foo.ex_squared = function(x) { return this.x2(x); }&quot;)
         assert_equal(4, foo.ex_squared(2))
-        @context.evaluate(&quot;foo.ex_squared = 20;&quot;)
+        @runtime.evaluate(&quot;foo.ex_squared = 20;&quot;)
         assert_equal(20, foo.ex_squared)
       end
 
       def test_use_ruby_global_object
-        func = @context.evaluate(&quot;function(x) { return this.x2(x); }&quot;)
+        func = @runtime.evaluate(&quot;function(x) { return this.x2(x); }&quot;)
         foo  = Foo.new
         assert_equal(4, func.call_using(foo, 2))
       end
       
       def test_proxies_roundtrip
-        @context[&quot;foo&quot;] = foo = Foo.new
-        assert_same(foo, @context.evaluate(&quot;foo&quot;))
+        @runtime[&quot;foo&quot;] = foo = Foo.new
+        assert_same(foo, @runtime.evaluate(&quot;foo&quot;))
       end
       
       def test_proxies_classes
-        @context[&quot;Foo&quot;] = Foo
-        assert_same(Foo, @context.evaluate(&quot;Foo&quot;))
+        @runtime[&quot;Foo&quot;] = Foo
+        assert_same(Foo, @runtime.evaluate(&quot;Foo&quot;))
       end
       
       def test_proxies_modules
-        @context[&quot;AModule&quot;] = AModule
-        assert_same(AModule, @context.evaluate(&quot;AModule&quot;))
+        @runtime[&quot;AModule&quot;] = AModule
+        assert_same(AModule, @runtime.evaluate(&quot;AModule&quot;))
       end
       
       def test_proxies_hashes
-        @context[&quot;beatles&quot;] = { &quot;george&quot; =&gt; &quot;guitar&quot; }
-        assert_equal(&quot;guitar&quot;, @context.evaluate(&quot;beatles['george']&quot;))
+        @runtime[&quot;beatles&quot;] = { &quot;george&quot; =&gt; &quot;guitar&quot; }
+        assert_equal(&quot;guitar&quot;, @runtime.evaluate(&quot;beatles['george']&quot;))
       end
       
       def test_getter_calls_0_arity_method
-        @context[&quot;foo&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = Foo.new
         assert_js_equal(10, &quot;foo.bar&quot;)
       end
       
       def test_getter_calls_indexer
-        @context[&quot;foo&quot;] = indexable = Indexable.new
+        @runtime[&quot;foo&quot;] = indexable = Indexable.new
         indexable[&quot;bar&quot;] = 10
         
         assert_js_equal(10, &quot;foo.bar&quot;)
       end
       
       def test_getter_returns_nil_for_unknown_properties
-        @context[&quot;foo&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = Foo.new
         assert_js_equal(nil, &quot;foo.quux&quot;)
       end
 
       def test_setter_calls_key=
-        @context[&quot;foo&quot;] = foo = Foo.new
+        @runtime[&quot;foo&quot;] = foo = Foo.new
         assert_js_equal(42, &quot;foo.bar = 42&quot;)
         assert_equal(42, foo.bar)
       end
       
       def test_setter_calls_indexer
-        @context[&quot;foo&quot;] = indexable = Indexable.new
+        @runtime[&quot;foo&quot;] = indexable = Indexable.new
         assert_js_equal(42, &quot;foo.monkey = 42&quot;)
         assert_equal(42, indexable[&quot;monkey&quot;])
       end
       
       def test_calls_attr_reader
-        @context[&quot;foo&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = Foo.new
         assert_js_equal(10, &quot;foo.bar&quot;)
       end
       
       def test_calls_1_arity_method
-        @context[&quot;foo&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = Foo.new
         assert_js_equal(10, &quot;foo.x2(5)&quot;)
       end
       
       def test_calls_n_arity_method
-        @context[&quot;foo&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = Foo.new
         assert_js_equal(10, &quot;foo.add(4, 2, 2, 1, 1)&quot;)
       end
       
       def test_calls_class_method
-        @context[&quot;Foo&quot;] = Foo
+        @runtime[&quot;Foo&quot;] = Foo
         assert_js_equal(Foo.bar, &quot;Foo.bar()&quot;)
       end
       
       def test_accesses_consts
-        @context[&quot;Foo&quot;] = Foo
-        assert_same(Foo::Inner, @context.evaluate(&quot;Foo.Inner&quot;))
+        @runtime[&quot;Foo&quot;] = Foo
+        assert_same(Foo::Inner, @runtime.evaluate(&quot;Foo.Inner&quot;))
       end
             
       def test_can_create_new_instances_in_js
-        @context[&quot;AClass&quot;] = AClass
-        foo = @context.evaluate(&quot;AClass.new()&quot;)
+        @runtime[&quot;AClass&quot;] = AClass
+        foo = @runtime.evaluate(&quot;AClass.new()&quot;)
         assert_kind_of(AClass, foo)
       end
       
       def test_class_proxies_provide_a_ctor
-        @context[&quot;AClass&quot;] = AClass
-        foo = @context.evaluate(&quot;new AClass()&quot;)
+        @runtime[&quot;AClass&quot;] = AClass
+        foo = @runtime.evaluate(&quot;new AClass()&quot;)
         assert_kind_of(AClass, foo)
         
-        bar = @context.evaluate(&quot;new AClass(1, 2, 3)&quot;)
+        bar = @runtime.evaluate(&quot;new AClass(1, 2, 3)&quot;)
         assert_equal([1, 2, 3], bar.args)
       end
       
       def test_dwims_blocks
-        @context[&quot;foo&quot;] = Foo.new
+        @runtime[&quot;foo&quot;] = Foo.new
         assert_js_equal(4, &quot;foo.xform(2, function(x) { return x * 2 })&quot;)
       end
       
       def test_dwims_blocks_for_0_arity_methods
-        @context[:arr] = [1, 2, 3]
+        @runtime[:arr] = [1, 2, 3]
         assert_js_equal([2, 4, 6], &quot;arr.collect(function(x) { return x * 2 })&quot;)
       end
       
@@ -221,15 +221,15 @@ module Johnson
       end
 
       def test_raises_string_to_ruby
-        assert_raise(Johnson::Error) { @context.evaluate(&quot;throw 'my string';&quot;) }
+        assert_raise(Johnson::Error) { @runtime.evaluate(&quot;throw 'my string';&quot;) }
       end
 
       def test_raises_object_to_ruby
-        assert_raise(Johnson::Error) { @context.evaluate(&quot;throw { bad: true };&quot;) }
+        assert_raise(Johnson::Error) { @runtime.evaluate(&quot;throw { bad: true };&quot;) }
       end
 
       def test_raises_exception_to_ruby
-        assert_raise(Johnson::Error) { @context.evaluate(&quot;undefinedValue();&quot;) }
+        assert_raise(Johnson::Error) { @runtime.evaluate(&quot;undefinedValue();&quot;) }
       end
     end
   end</diff>
      <filename>test/johnson/spidermonkey/js_land_proxy_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc2a8331070fe0cb318d359ee5d439859d957604</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Patterson</name>
    <email>aaron.patterson@gmail.com</email>
  </author>
  <url>http://github.com/jbarnette/johnson/commit/e6e9ac78c9aee246329f6bc90b19c58c49a2f538</url>
  <id>e6e9ac78c9aee246329f6bc90b19c58c49a2f538</id>
  <committed-date>2008-05-30T16:50:00-07:00</committed-date>
  <authored-date>2008-05-30T16:50:00-07:00</authored-date>
  <message>making more shit work</message>
  <tree>26c1852e99f90ad428f37959d652f8a48c7440fa</tree>
  <committer>
    <name>Aaron Patterson</name>
    <email>aaron.patterson@gmail.com</email>
  </committer>
</commit>
