fxruby 1.6.20-x86-mingw32 → 1.6.22.pre2-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. data/.gemtest +0 -0
  2. data/README.txt +2 -1
  3. data/Rakefile +43 -35
  4. data/TODO +4 -4
  5. data/doap.rdf +2 -2
  6. data/ext/fox16/FXRbDataTarget.cpp +2 -2
  7. data/ext/fox16/FXRuby.cpp +31 -96
  8. data/ext/fox16/core_wrap.cpp +5 -1
  9. data/ext/fox16/dialogs_wrap.cpp +4 -4
  10. data/ext/fox16/extconf.rb +15 -7
  11. data/ext/fox16/frames_wrap.cpp +1 -1
  12. data/ext/fox16/fx3d_wrap.cpp +1 -1
  13. data/ext/fox16/iconlist_wrap.cpp +2 -2
  14. data/ext/fox16/include/FXRbApp.h +2 -2
  15. data/ext/fox16/include/FXRbCommon.h +2 -0
  16. data/ext/fox16/list_wrap.cpp +3 -3
  17. data/ext/fox16/markfuncs.cpp +1 -0
  18. data/ext/fox16/treelist_wrap.cpp +2 -2
  19. data/ext/fox16/ui_wrap.cpp +3 -3
  20. data/lib/1.8/fox16.so +0 -0
  21. data/lib/1.9/fox16.so +0 -0
  22. data/lib/fox16/accel_table.rb +16 -3
  23. data/lib/fox16/bitmapview.rb +7 -8
  24. data/lib/fox16/core.rb +5 -5
  25. data/lib/fox16/kwargs.rb +877 -879
  26. data/lib/fox16/scintilla.rb +1321 -45
  27. data/lib/fox16/version.rb +1 -1
  28. data/scripts/generate_kwargs_lib.rb +2 -4
  29. data/swig-interfaces/FXMemoryStream.i +9 -5
  30. data/swig-interfaces/ruby-typemaps.i +4 -4
  31. data/test/TC_FXAccelTable.rb +2 -2
  32. data/test/TC_FXApp.rb +48 -2
  33. data/test/TC_FXArc.rb +2 -2
  34. data/test/TC_FXBMPIcon.rb +2 -2
  35. data/test/TC_FXBMPImage.rb +2 -2
  36. data/test/TC_FXButton.rb +2 -2
  37. data/test/TC_FXCheckButton.rb +2 -2
  38. data/test/TC_FXComboBox.rb +2 -2
  39. data/test/TC_FXDC.rb +2 -2
  40. data/test/TC_FXDCPrint.rb +6 -5
  41. data/test/TC_FXDCWindow.rb +5 -3
  42. data/test/TC_FXDataTarget.rb +2 -2
  43. data/test/TC_FXDialogBox.rb +2 -2
  44. data/test/TC_FXDirList.rb +2 -2
  45. data/test/TC_FXExtentd.rb +2 -2
  46. data/test/TC_FXExtentf.rb +2 -2
  47. data/test/TC_FXFileAssoc.rb +2 -2
  48. data/test/TC_FXFileStream.rb +2 -2
  49. data/test/TC_FXFoldingList.rb +2 -2
  50. data/test/TC_FXFont.rb +2 -2
  51. data/test/TC_FXFontDesc.rb +2 -2
  52. data/test/TC_FXGLGroup.rb +2 -2
  53. data/test/TC_FXGLShape.rb +2 -2
  54. data/test/TC_FXGLViewer.rb +2 -2
  55. data/test/TC_FXGradientBar.rb +2 -2
  56. data/test/TC_FXHeader.rb +2 -2
  57. data/test/TC_FXHiliteStyle.rb +2 -2
  58. data/test/TC_FXIconDict.rb +2 -2
  59. data/test/TC_FXIconList.rb +2 -2
  60. data/test/TC_FXId.rb +2 -2
  61. data/test/TC_FXImage.rb +2 -2
  62. data/test/TC_FXLight.rb +2 -2
  63. data/test/TC_FXList.rb +2 -2
  64. data/test/TC_FXListBox.rb +2 -2
  65. data/test/TC_FXMainWindow.rb +2 -2
  66. data/test/TC_FXMat4f.rb +2 -2
  67. data/test/TC_FXMaterial.rb +2 -16
  68. data/test/TC_FXMemoryStream.rb +6 -6
  69. data/test/TC_FXMenuCheck.rb +2 -2
  70. data/test/TC_FXMenuCommand.rb +2 -2
  71. data/test/TC_FXMenuRadio.rb +7 -7
  72. data/test/TC_FXMessageBox.rb +2 -2
  73. data/test/TC_FXPoint.rb +2 -2
  74. data/test/TC_FXQuatf.rb +2 -2
  75. data/test/TC_FXRadioButton.rb +2 -2
  76. data/test/TC_FXRanged.rb +2 -2
  77. data/test/TC_FXRangef.rb +2 -2
  78. data/test/TC_FXRectangle.rb +2 -2
  79. data/test/TC_FXRegion.rb +2 -2
  80. data/test/TC_FXRegistry.rb +2 -2
  81. data/test/TC_FXScrollArea.rb +2 -2
  82. data/test/TC_FXScrollWindow.rb +2 -2
  83. data/test/TC_FXSegment.rb +2 -2
  84. data/test/TC_FXSettings.rb +2 -2
  85. data/test/TC_FXShell.rb +2 -2
  86. data/test/TC_FXSize.rb +2 -2
  87. data/test/TC_FXStream.rb +2 -2
  88. data/test/TC_FXTable.rb +47 -47
  89. data/test/TC_FXTableItem.rb +4 -4
  90. data/test/TC_FXText.rb +4 -4
  91. data/test/TC_FXTopWindow.rb +2 -2
  92. data/test/TC_FXTreeList.rb +2 -2
  93. data/test/TC_FXTreeListBox.rb +2 -2
  94. data/test/TC_FXUndoList.rb +3 -3
  95. data/test/TC_FXVec2d.rb +2 -2
  96. data/test/TC_FXVec2f.rb +2 -2
  97. data/test/TC_FXVec3d.rb +2 -2
  98. data/test/TC_FXVec3f.rb +2 -2
  99. data/test/TC_FXVec4f.rb +2 -2
  100. data/test/TC_FXViewport.rb +2 -2
  101. data/test/TC_FXXBMIcon.rb +2 -2
  102. data/test/TC_FXXBMImage.rb +2 -2
  103. data/test/TC_FXXPMIcon.rb +2 -2
  104. data/test/TC_FXXPMImage.rb +2 -2
  105. data/test/TC_downcast.rb +2 -2
  106. metadata +110 -75
data/lib/fox16/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Fox
2
2
  def Fox.fxrubyversion
3
- "1.6.20"
3
+ "1.6.22.pre2"
4
4
  end
5
5
  end
@@ -108,9 +108,7 @@ class Generator
108
108
 
109
109
  def generate_preamble(out)
110
110
  out.puts <<-END
111
- require 'fox16'
112
-
113
- $VERBOSE = nil
111
+ old_verbose = $VERBOSE; $VERBOSE = nil
114
112
 
115
113
  module Fox
116
114
 
@@ -132,7 +130,7 @@ END
132
130
  def generate_closing(out)
133
131
  out.puts "end"
134
132
  out.puts ""
135
- out.puts "$VERBOSE = true"
133
+ out.puts "$VERBOSE = old_verbose"
136
134
  end
137
135
 
138
136
  def scan_for_descriptions(filename)
@@ -44,7 +44,7 @@ public:
44
44
  return self->open(save_or_load,data);
45
45
  }
46
46
  }
47
-
47
+
48
48
  // Take buffer away from stream
49
49
  VALUE takeBuffer() {
50
50
  FXuchar* buffer;
@@ -54,19 +54,23 @@ public:
54
54
  FXFREE(&buffer);
55
55
  return result;
56
56
  }
57
-
57
+
58
58
  /// Give buffer to stream
59
59
  void giveBuffer(VALUE str){
60
+ FXuchar* copy = NULL;
60
61
  Check_Type(str,T_STRING);
61
62
  FXuchar* buffer=reinterpret_cast<FXuchar*>(StringValuePtr(str));
62
63
  FXuval sp=RSTRING_LEN(str);
63
- self->giveBuffer(buffer,sp);
64
+ if( FXMALLOC(&copy, FXuchar *, sp)) {
65
+ memcpy(copy, buffer, sp);
66
+ self->giveBuffer(copy,sp);
67
+ }
64
68
  }
65
69
  }
66
-
70
+
67
71
  /// Get position
68
72
  FXlong position() const;
69
-
73
+
70
74
  /// Destructor
71
75
  virtual ~FXMemoryStream();
72
76
  };
@@ -184,7 +184,7 @@ inline FXbool to_FXbool(VALUE obj){
184
184
  $1 = NULL;
185
185
  if(!NIL_P($input)){
186
186
  Check_Type($input, T_ARRAY);
187
- if (FXMALLOC(&$1, FXchar *, RARRAY_LEN($input))+1) {
187
+ if (FXMALLOC(&$1, FXchar *, RARRAY_LEN($input)+1)) {
188
188
  for (long i = 0; i < RARRAY_LEN($input); i++) {
189
189
  VALUE e = rb_ary_entry($input, i);
190
190
  $1[i] = (FXchar *) StringValuePtr(e);
@@ -201,7 +201,7 @@ inline FXbool to_FXbool(VALUE obj){
201
201
  $1 = NULL;
202
202
  if(!NIL_P($input)){
203
203
  Check_Type($input, T_ARRAY);
204
- if (FXMALLOC(&$1, FXColor, RARRAY_LEN($input))+1) {
204
+ if (FXMALLOC(&$1, FXColor, RARRAY_LEN($input)+1)) {
205
205
  for (long i = 0; i < RARRAY_LEN($input); i++) {
206
206
  $1[i] = static_cast<FXColor>(NUM2ULONG(rb_ary_entry($input, i)));
207
207
  }
@@ -599,7 +599,7 @@ inline void* to_FXEvent(VALUE obj){
599
599
 
600
600
  /* Output typemap for FXViewport instances */
601
601
  %typemap(out) FXViewport {
602
- FXViewport* resultptr = new FXViewport($1);
602
+ FXViewport* resultptr = new FXViewport($1);
603
603
  $result = FXRbGetRubyObj(resultptr, "FXViewport *");
604
604
  }
605
605
 
@@ -731,7 +731,7 @@ inline void* to_FXEvent(VALUE obj){
731
731
  * be able to pass either zero, -1, or a window to that function and get
732
732
  * the same behavior as in FOX.
733
733
  */
734
-
734
+
735
735
  %typemap(in) FXWindow* TOOLBAR_DOCK_AFTER {
736
736
  if (TYPE($input) == T_FIXNUM) {
737
737
  $1 = reinterpret_cast<FXWindow *>(static_cast<long>(NUM2INT($input)));
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXAccelTable < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @accelTable = FXAccelTable.new
10
10
  @hotKey = fxparseHotKey('&q')
data/test/TC_FXApp.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
-
4
- include Fox
3
+ require 'testcase'
4
+ require 'socket'
5
5
 
6
6
  class TC_FXApp < Test::Unit::TestCase
7
+ include Fox
8
+
7
9
  def test_exception_for_second_app
8
10
  app = FXApp.new
9
11
  mainWindow = FXMainWindow.new(app, "")
@@ -14,3 +16,47 @@ class TC_FXApp < Test::Unit::TestCase
14
16
  end
15
17
  end
16
18
 
19
+ class TC_FXApp2 < Fox::TestCase
20
+ include Fox
21
+
22
+ def setup
23
+ super(self.class.name)
24
+ end
25
+
26
+ def check_events(pipe_rd, pipe_wr)
27
+ app.addInput(pipe_wr, INPUT_WRITE, app, FXApp::ID_QUIT)
28
+ app.run
29
+ app.removeInput(pipe_wr, INPUT_WRITE)
30
+
31
+ app.addInput(pipe_rd, INPUT_READ, app, FXApp::ID_QUIT)
32
+ data_sent = false
33
+ app.addTimeout(1) do
34
+ data_sent = true
35
+ pipe_wr.write " "
36
+ end
37
+ app.run
38
+ assert data_sent, "the read input event shouldn't fire before some data is available"
39
+
40
+ app.removeInput(pipe_rd, INPUT_READ)
41
+ pipe_wr.close
42
+ pipe_rd.close unless pipe_rd.closed?
43
+ end
44
+
45
+ def test_addInput_on_pipe
46
+ check_events *IO.pipe
47
+ end
48
+
49
+ def test_addInput_on_socket
50
+ s = TCPServer.open 'localhost', 0
51
+ pipe_wr = TCPSocket.open 'localhost', s.addr[1]
52
+ pipe_rd = s.accept
53
+ s.close
54
+
55
+ check_events pipe_rd, pipe_wr
56
+ end
57
+
58
+ def test_addInput_on_popen
59
+ pipe_rdwr = IO.popen("cat", "r+")
60
+ check_events pipe_rdwr, pipe_rdwr
61
+ end
62
+ end
data/test/TC_FXArc.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXArc < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def test_new
8
8
  anArc = FXArc.new
9
9
  assert_equal(0, anArc.x)
data/test/TC_FXBMPIcon.rb CHANGED
@@ -2,9 +2,9 @@ require 'fox16'
2
2
  require 'test/unit'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXBMPIcon < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXBMPIcon < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
@@ -2,9 +2,9 @@ require 'fox16'
2
2
  require 'test/unit'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXBMPImage < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXBMPImage < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
data/test/TC_FXButton.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXButton < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXButton < TestCase
8
8
  def setup
9
9
  super("TC_FXButton")
10
10
  @button = FXButton.new(mainWindow, "buttonText")
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXCheckButton < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXCheckButton < TestCase
8
8
  def setup
9
9
  super("TC_FXCheckButton")
10
10
  @checkButton = FXCheckButton.new(mainWindow, "cbText")
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXComboBox < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXComboBox < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @comboBox = FXComboBox.new(mainWindow, 1)
data/test/TC_FXDC.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXDC < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  if FXApp.instance.nil?
10
10
  @app = FXApp.new('TC_FXDC', 'FXRuby')
data/test/TC_FXDCPrint.rb CHANGED
@@ -1,10 +1,11 @@
1
1
  require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
-
5
- include Fox
4
+ require 'fileutils'
6
5
 
7
6
  class TC_FXDCPrint < Test::Unit::TestCase
7
+ include Fox
8
+
8
9
  private
9
10
  def printJob
10
11
  job = FXPrinter.new
@@ -25,7 +26,7 @@ private
25
26
  job.flags = PRINT_DEST_FILE
26
27
  job
27
28
  end
28
-
29
+
29
30
  def hexdump(ios)
30
31
  count = 0
31
32
  ios.each_byte do |byte|
@@ -48,7 +49,7 @@ private
48
49
  File.open(actual, 'rb') { |f| actual_contents = crlf_to_lf(f.read) }
49
50
  assert_equal(expected_contents, actual_contents)
50
51
  end
51
-
52
+
52
53
  public
53
54
  def setup
54
55
  if FXApp.instance.nil?
@@ -92,7 +93,7 @@ public
92
93
  end
93
94
  # assert_same_file_contents("howdypage.ps", printJob.name)
94
95
  end
95
-
96
+
96
97
  def teardown
97
98
  if File.exists?("output.ps")
98
99
  FileUtils.rm_f("output.ps")
@@ -2,21 +2,23 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXDCWindow < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXDCWindow < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  app.create
11
11
  mainWindow.create
12
12
  end
13
+
13
14
  def test_new
14
15
  dc = FXDCWindow.new(mainWindow)
15
16
  dc.drawPoint(0, 0)
16
17
  dc.end
17
18
  end
19
+
18
20
  def test_new_with_block
19
- dc = FXDCWindow.new(mainWindow) do |dc|
21
+ FXDCWindow.new(mainWindow) do |dc|
20
22
  dc.drawPoint(0, 0)
21
23
  end
22
24
  end
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXDataTarget < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def setup
8
8
  @nilTarget = FXDataTarget.new
9
9
  @intTarget = FXDataTarget.new(42)
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXDialogBox < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def test_nil_app_raises_argument_error
8
8
  assert_raise ArgumentError do
9
9
  FXDialogBox.new(nil, "title")
data/test/TC_FXDirList.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXDirList < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXDirList < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @dirList = FXDirList.new(mainWindow)
data/test/TC_FXExtentd.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXExtentd < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def test_lower_always_returns_same_instance
8
8
  e = FXExtentd.new(0, 1, 0, 1)
9
9
  assert_same e.lower, e.lower
data/test/TC_FXExtentf.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXExtentf < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def test_lower_always_returns_same_instance
8
8
  e = FXExtentf.new(0, 1, 0, 1)
9
9
  assert_same e.lower, e.lower
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXFileAssoc < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @app = FXApp.instance || FXApp.new
10
10
  @icon = FXIcon.new(@app)
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'tempfile'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXFileStream < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @filestream = FXFileStream.new
10
10
  end
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXFoldingList < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXFoldingList < TestCase
8
8
 
9
9
  def setup
10
10
  super(self.class.name)
data/test/TC_FXFont.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXFont < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  if FXApp.instance.nil?
10
10
  @app = FXApp.new('TC_FXFont', 'FoxTest')
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXFontDesc < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @fontdesc = FXFontDesc.new
10
10
  end
data/test/TC_FXGLGroup.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXGLGroup < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def setup
8
8
  @group = FXGLGroup.new
9
9
  end
data/test/TC_FXGLShape.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXGLShape < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
 
8
8
  DELTA = 1.0e-5
9
9
 
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXGLViewer < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXGLViewer < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  vis = FXGLVisual.new(app, VISUAL_DOUBLEBUFFER)
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXGradientBar < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXGradientBar < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @gradientBar = FXGradientBar.new(mainWindow)
data/test/TC_FXHeader.rb CHANGED
@@ -2,9 +2,9 @@ require 'fox16'
2
2
  require 'test/unit'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXHeader < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXHeader < TestCase
8
8
 
9
9
  def setup
10
10
  super(self.class.name)
@@ -1,9 +1,9 @@
1
1
  require 'fox16'
2
2
  require 'test/unit'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXHiliteStyle < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
 
8
8
  def setup
9
9
  @style = FXHiliteStyle.new
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXIconDict < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXIconDict < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXIconList < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXIconList < TestCase
8
8
 
9
9
  private
10
10
 
data/test/TC_FXId.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'fox16'
3
3
  require 'testcase'
4
4
 
5
- include Fox
5
+ class TC_FXId < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXId < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
data/test/TC_FXImage.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXImage < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXImage < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  end
data/test/TC_FXLight.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
 
3
3
  require 'fox16'
4
4
 
5
- include Fox
6
-
7
5
  class TC_FXLight < Test::Unit::TestCase
6
+ include Fox
7
+
8
8
  def setup
9
9
  @light = FXLight.new
10
10
  end
data/test/TC_FXList.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXList < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXList < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @list = FXList.new(mainWindow)
data/test/TC_FXListBox.rb CHANGED
@@ -2,9 +2,9 @@ require 'test/unit'
2
2
  require 'testcase'
3
3
  require 'fox16'
4
4
 
5
- include Fox
5
+ class TC_FXListBox < Fox::TestCase
6
+ include Fox
6
7
 
7
- class TC_FXListBox < TestCase
8
8
  def setup
9
9
  super(self.class.name)
10
10
  @listBox = FXListBox.new(mainWindow)
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXMainWindow < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def test_nil_app_raises_argument_error
8
8
  assert_raise ArgumentError do
9
9
  FXMainWindow.new(nil, "title")
data/test/TC_FXMat4f.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'test/unit'
2
2
  require 'fox16'
3
3
 
4
- include Fox
5
-
6
4
  class TC_FXMat4f < Test::Unit::TestCase
5
+ include Fox
6
+
7
7
  def setup
8
8
  @hmat = FXMat4f.new
9
9
  end