search for: assert_retrievable_data

Displaying 2 results from an estimated 2 matches for "assert_retrievable_data".

2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...end +end + +class CtrlContainerFrame < Wx::Frame + attr_accessor :control + def initialize(ctrl_class, *args) + super(nil, -1, ''Test '' + ctrl_class.name) + self.control = ctrl_class.new(self, -1, *args) + end +end + +class TestItemData < Test::Unit::TestCase + def assert_retrievable_data(ctrl, n, test_value) + compare = Marshal.load( Marshal.dump(test_value) ) + ctrl.set_client_data(n, test_value) + assert_equal(compare, ctrl.get_client_data(n) ) + GC.start + assert_equal(compare, ctrl.get_client_data(n) ) + end + + def do_control_with_items_assertions(f) + asse...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...mp;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-12-01 17:40:06 UTC (rev 766) </span><span class="lines">@@ -20,10 +20,10 @@ </span><span class="cx"> class TestItemData < Test::Unit::TestCase </span><span class="cx"> def assert_retrievable_data(ctrl, n, test_value) </span><span class="cx"> compare = Marshal.load( Marshal.dump(test_value) ) </span><del>- ctrl.set_client_data(n, test_value) - assert_equal(compare, ctrl.get_client_data(n) ) </del><ins>+ ctrl.set_item_data(n, test_val...