Sha256: 37645a8d40e7a65a0af648e0e5eb8c4c384f4bdb4a1980552196c525330c0d76

Contents?: true

Size: 948 Bytes

Versions: 10

Compression:

Stored size: 948 Bytes

Contents

#!/usr/bin/env ruby

require 'rd_test_base'

class RDEnableDisableTest < RDTestBase

  def test_enable_disable_basics
    create_socket ['1.upto(10) do', 'sleep 0.01', 'sleep 0.01', 'end']
    
    send_test_breakpoint(2)
    assert_breakpoint_added_no(1)
    send_test_breakpoint(3)
    assert_breakpoint_added_no(2)
    
    start_debugger
    assert_test_breakpoint(2)
    send_cont
    assert_test_breakpoint(3)
    send_cont
    assert_test_breakpoint(2)
    send_ruby('disable 2')
    assert_breakpoint_disabled(2)
    send_cont
    assert_test_breakpoint(2)
    send_cont
    assert_test_breakpoint(2)
    send_ruby('enable 2')
    assert_breakpoint_enabled(2)
    send_cont
    assert_test_breakpoint(3)
    send_cont
    assert_test_breakpoint(2)
    send_cont
    assert_test_breakpoint(3)
    send_ruby('disable 1')
    assert_breakpoint_disabled(1)
    send_ruby('disable 2')
    assert_breakpoint_disabled(2)
    send_cont
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ruby-debug-ide-0.4.11 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.10 test/rd_enable_disable_test.rb
ruby-debug-ide19-0.4.10 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.9 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.8 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.7 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.6 test/rd_enable_disable_test.rb
ruby-debug-ide-0.3.4 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.4 test/rd_enable_disable_test.rb
ruby-debug-ide-0.4.5 test/rd_enable_disable_test.rb