Sha256: 956585903a0d20d9705574b0ac30c4a4bb938a973e5fada112c64f17ec6fa8f0
Contents?: true
Size: 905 Bytes
Versions: 2
Compression:
Stored size: 905 Bytes
Contents
require File.dirname(__FILE__) + "/helper" class RWidgetTest < Test::Unit::TestCase include Glimmer def setup dsl :swt end def test_async_exec @target = shell { @text = text { text "text1" } } @target.async_exec do @text.widget.setText("text2") end @target.async_exec do assert_equal "text2", @text.widget.getText @target.widget.close end @target.open end def test_sync_exec @target = shell { @text = text { text "text1" } } @target.async_exec do assert_equal "text2", @text.widget.getText @text.widget.setText("text3") end @target.sync_exec do @text.widget.setText("text2") end @target.async_exec do @target.widget.close end @target.open end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glimmer-0.1.3 | test/r_widget_test.rb |
glimmer-0.1.2 | test/r_widget_test.rb |