Sha256: 2987299e9af194ceb807b46d75d184438e0e81963b5bde443128af004bc23f80

Contents?: true

Size: 591 Bytes

Versions: 23

Compression:

Stored size: 591 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "/../../helper"))

module Johnson
  module SpiderMonkey
    class ContextTest < Johnson::TestCase
      def setup
        @runtime = Johnson::Runtime.new(Johnson::SpiderMonkey::Runtime)
      end
      
      def test_wraps_global_unfuckedly
        assert_same(@runtime.global, @runtime.evaluate("this"))
      end
      
      def test_provides_basic_runtime_interface
        assert(@runtime.respond_to?(:evaluate))
        assert(@runtime.respond_to?(:[]))
        assert(@runtime.respond_to?(:[]=))
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
jbarnette-johnson-1.0.0.200806240111 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.200807291507 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.200808062051 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.200808062111 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.200811251942 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20081126120511 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090127202936 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090225110820 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090326122910 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090326154650 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090326161333 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090402144841 test/johnson/spidermonkey/context_test.rb
jbarnette-johnson-1.0.0.20090402155420 test/johnson/spidermonkey/context_test.rb
johnson-2.0.0.pre1 test/johnson/spidermonkey/context_test.rb
johnson-2.0.0.pre0 test/johnson/spidermonkey/context_test.rb
johnson-1.2.0 test/johnson/spidermonkey/context_test.rb
smparkes-johnson-1.1.2.6 test/johnson/spidermonkey/context_test.rb
smparkes-johnson-1.1.2.5 test/johnson/spidermonkey/context_test.rb
smparkes-johnson-1.1.2.4 test/johnson/spidermonkey/context_test.rb
smparkes-johnson-1.1.2.3 test/johnson/spidermonkey/context_test.rb