| Class | Test::Unit::UI::GTK2::TestRunner |
| In: |
test/unit/ui/gtk2/testrunner.rb
|
| Parent: | Object |
# File test/unit/ui/gtk2/testrunner.rb, line 443 def initialize(suite, output_level = NORMAL) if suite.respond_to?(:suite) then @suite = suite.suite else @suite = suite end @result = nil @runner = Thread.current @restart_signal = Class.new(Exception) @viewer = Thread.start do @runner.join rescue @runner.run Gtk.main end @viewer.join rescue nil # wait deadlock to handshake end
# File test/unit/ui/gtk2/testrunner.rb, line 237 def progress_panel lazy_initialize(:progress_panel) do @progress_panel = Gtk::HBox.new(false, 10) @progress_panel.border_width = 10 @progress_panel.pack_start(test_progress_bar, true, true, 0) end end
# File test/unit/ui/gtk2/testrunner.rb, line 245 def run_button lazy_initialize(:run_button) do @run_button = Gtk::Button.new("Run") end end
# File test/unit/ui/gtk2/testrunner.rb, line 435 def start setup_mediator setup_ui attach_to_mediator start_ui @result end
ruby-doc.org is a community service provided by James Britt and Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.