fxruby 1.6.16-universal-darwin-9 → 1.6.17-universal-darwin-9
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.
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/changes.html +53 -31
- data/doc/differences.html +9 -9
- data/doc/implementation.html +1 -1
- data/doc/library.html +5 -5
- data/doc/opengl.html +5 -5
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +4 -4
- data/doc/subversion.html +1 -1
- data/examples/dilbert.rb +1 -1
- data/ext/fox16/fox16.bundle +0 -0
- data/lib/fox16/kwargs.rb +4 -0
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXTable.rb +24 -16
- data/tests/TC_FXRanged.rb +42 -0
- data/tests/TC_FXRangef.rb +12 -18
- data/tests/TC_FXTable.rb +193 -0
- metadata +4 -3
data/doc/pt02.html
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
<html><head>
|
2
2
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
3
|
-
<title>Part II. Appendices</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="prev" href="changes.html" title="Chapter 10. Change History"><link rel="next" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part II. Appendices</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="changes.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="opengl.html">Next</a></td></tr></table><hr></div><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="
|
3
|
+
<title>Part II. Appendices</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="prev" href="changes.html" title="Chapter 10. Change History"><link rel="next" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part II. Appendices</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="changes.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="opengl.html">Next</a></td></tr></table><hr></div><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e4693"></a>Part II. Appendices</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="appendix"><a href="opengl.html">A. Using OpenGL with FXRuby</a></span></dt><dt><span class="appendix"><a href="scintilla.html">B. Using Scintilla with FXRuby</a></span></dt><dt><span class="appendix"><a href="differences.html">C. Differences between FOX and FXRuby</a></span></dt><dt><span class="appendix"><a href="library.html">D. The FXRuby Standard Library</a></span></dt><dt><span class="appendix"><a href="implementation.html">E. Implementation</a></span></dt><dd><dl><dt><span class="section"><a href="implementation.html#d0e5744">Code Generation</a></span></dt><dt><span class="section"><a href="apes02.html">Object Life Cycles and Garbage Collection</a></span></dt><dd><dl><dt><span class="section"><a href="apes02.html#d0e5782">GL Objects</a></span></dt></dl></dd><dt><span class="section"><a href="apes03.html">Virtual Functions</a></span></dt></dl></dd><dt><span class="appendix"><a href="subversion.html">F. Getting the Sources from Subversion</a></span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="changes.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="opengl.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 10. Change History </td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top"> Appendix A. Using OpenGL with FXRuby</td></tr></table></div></body></html>
|
data/doc/scintilla.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
<html><head>
|
2
2
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
3
|
-
<title>Appendix B. Using Scintilla with FXRuby</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part II. Appendices"><link rel="prev" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"><link rel="next" href="differences.html" title="Appendix C. Differences between FOX and FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix B. Using Scintilla with FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="opengl.html">Prev</a> </td><th width="60%" align="center">Part II. Appendices</th><td width="20%" align="right"> <a accesskey="n" href="differences.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="scintilla"></a>Appendix B. Using Scintilla with FXRuby</h2></div></div></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
3
|
+
<title>Appendix B. Using Scintilla with FXRuby</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part II. Appendices"><link rel="prev" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"><link rel="next" href="differences.html" title="Appendix C. Differences between FOX and FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix B. Using Scintilla with FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="opengl.html">Prev</a> </td><th width="60%" align="center">Part II. Appendices</th><td width="20%" align="right"> <a accesskey="n" href="differences.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="scintilla"></a>Appendix B. Using Scintilla with FXRuby</h2></div></div></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4881"></a>What is Scintilla?</h2></div></div></div><p><a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.scintilla.org" target="_top">Scintilla</a> is a free
|
4
4
|
source code editing component developed by Neil Hodgson for the Win32 and
|
5
|
-
GTK+ platforms.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
5
|
+
GTK+ platforms.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4888"></a>What is FXScintilla?</h2></div></div></div><p><a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://savannah.gnu.org/projects/fxscintilla" target="_top">FXScintilla </a> is
|
6
6
|
a FOX widget that wraps around the Scintilla component, or, if you wish,
|
7
7
|
the FOX "port" of Scintilla. Until recently it was developed by Gilles Filippini,
|
8
8
|
and as of this writing the latest release is available for download from
|
9
|
-
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz" target="_top">http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz</a>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
9
|
+
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz" target="_top">http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz</a>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4898"></a>Compiling FXScintilla</h2></div></div></div><p>The FXScintilla distribution contains everything you need to build
|
10
10
|
the FXScintilla widget and begin using it in your C++-based FOX
|
11
11
|
applications. That is to say, you do not have to separately download the
|
12
12
|
Scintilla source code from the Scintilla home page. When you unpack the
|
@@ -17,7 +17,7 @@
|
|
17
17
|
other open-source software (like FOX) from the source code. The
|
18
18
|
<code class="filename">INSTALL</code> file in the top-level directory should
|
19
19
|
provide enough instruction for you to build and install FXScintilla for
|
20
|
-
either Unix or Microsoft Windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
20
|
+
either Unix or Microsoft Windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4911"></a>Enabling FXScintilla Support in FXRuby</h2></div></div></div><p>The next step is to build a version of FXRuby (from its source code)
|
21
21
|
with the optional FXScintilla support enabled. If you're working on a Unix
|
22
22
|
or Linux system and have installed FXScintilla in one of the standard
|
23
23
|
installation directories (e.g. under <code class="filename">/usr/include</code> or <code class="filename">/usr/local/include</code>), the regular FXRuby build
|
data/doc/subversion.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://svnbook.red-bean.com/" target="_top">book</a>.</p><p>You're also going to need to have a working <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.swig.org/" target="_top">SWIG</a> installation so that you can
|
15
15
|
generate the C++ source files from the SWIG interface files. As of this
|
16
16
|
writing, FXRuby requires SWIG version 1.3.22; later versions of SWIG will
|
17
|
-
not work, nor will versions earlier than about 1.3.15.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
17
|
+
not work, nor will versions earlier than about 1.3.15.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e5927"></a>Checking out the code</h2></div></div></div><p>To check out the development version (i.e. the trunk) for FXRuby,
|
18
18
|
type the following command:</p><pre class="screen">svn checkout svn://rubyforge.org/var/svn/fxruby/trunk/FXRuby</pre><p>Next, you'll need to use SWIG to generate the C++ source code from
|
19
19
|
the SWIG interface files. To do that, type:</p><pre class="screen">rake swig</pre><p>At this point, you should be ready to change to the top-level
|
20
20
|
directory and go through the normal build and installation process, as
|
data/examples/dilbert.rb
CHANGED
@@ -41,7 +41,7 @@ class DailyDilbert < FXMainWindow
|
|
41
41
|
|
42
42
|
def image_data
|
43
43
|
doc = Hpricot(open("http://www.dilbert.com/"))
|
44
|
-
url = doc.search("img").find { |e| e['
|
44
|
+
url = doc.search("img").find { |e| e['src'] =~ /\/dyn\/str_strip\/.*\.gif/ }
|
45
45
|
open("http://www.dilbert.com" + url['src'], "rb").read
|
46
46
|
end
|
47
47
|
|
data/ext/fox16/fox16.bundle
CHANGED
Binary file
|
data/lib/fox16/kwargs.rb
CHANGED
data/lib/fox16/version.rb
CHANGED
data/rdoc-sources/FXTable.rb
CHANGED
@@ -608,18 +608,10 @@ module Fox
|
|
608
608
|
# Raises IndexError if _row_ is out of bounds.
|
609
609
|
def getRowHeight(row) ; end
|
610
610
|
|
611
|
-
# Set x-coordinate for column.
|
612
|
-
# Raises IndexError if _column_ is out of bounds.
|
613
|
-
def setColumnX(column, x) ; end
|
614
|
-
|
615
611
|
# Get x-coordinate of column.
|
616
612
|
# Raises IndexError if _column_ is out of bounds.
|
617
613
|
def getColumnX(column) ; end
|
618
614
|
|
619
|
-
# Set y-coordinate of row.
|
620
|
-
# Raises IndexError if _row_ is out of bounds.
|
621
|
-
def setRowY(row, y) ; end
|
622
|
-
|
623
615
|
# Get y-coordinate of row.
|
624
616
|
# Raises IndexError if _row_ is out of bounds.
|
625
617
|
def getRowY(row) ; end
|
@@ -645,51 +637,67 @@ module Fox
|
|
645
637
|
def fitColumnsToContents(col, nc=1); end
|
646
638
|
|
647
639
|
# Set column header at _index_ to _text_.
|
640
|
+
# Raises IndexError if _index_ is out of bounds.
|
648
641
|
def setColumnText(index, text); end
|
649
642
|
|
650
643
|
# Return text of column header at _index_.
|
644
|
+
# Raises IndexError if _index_ is out of bounds.
|
651
645
|
def getColumnText(index); end
|
652
646
|
|
653
647
|
# Set row header at _index_ to _text_.
|
648
|
+
# Raises IndexError if _index_ is out of bounds.
|
654
649
|
def setRowText(index, text); end
|
655
650
|
|
656
651
|
# Return text of row header at _index_.
|
652
|
+
# Raises IndexError if _index_ is out of bounds.
|
657
653
|
def getRowText(index); end
|
658
654
|
|
659
|
-
# Change column header icon
|
655
|
+
# Change column header icon.
|
656
|
+
# Raises IndexError if _index_ is out of bounds.
|
660
657
|
def setColumnIcon(FXint index,FXIcon* icon);
|
661
658
|
|
662
|
-
# Return icon of column header at
|
659
|
+
# Return icon of column header at _index_.
|
660
|
+
# Raises IndexError if _index_ is out of bounds.
|
663
661
|
def getColumnIcon(index); end
|
664
662
|
|
665
|
-
# Change row header icon
|
663
|
+
# Change row header icon.
|
664
|
+
# Raises IndexError if _index_ is out of bounds.
|
666
665
|
def setRowIcon(index, icon); end
|
667
666
|
|
668
|
-
# Return icon of row header at
|
667
|
+
# Return icon of row header at _index_.
|
668
|
+
# Raises IndexError if _index_ is out of bounds.
|
669
669
|
def getRowIcon(index); end
|
670
670
|
|
671
671
|
# Change column header icon position, e.g. FXHeaderItem::BEFORE, etc.
|
672
|
+
# Raises IndexError if _index_ is out of bounds.
|
672
673
|
def setColumnIconPosition(index, mode); end
|
673
674
|
|
674
|
-
# Return icon position of column header at
|
675
|
+
# Return icon position of column header at _index_.
|
676
|
+
# Raises IndexError if _index_ is out of bounds.
|
675
677
|
def getColumnIconPosition(index); end
|
676
678
|
|
677
679
|
# Change row header icon position, e.g. FXHeaderItem::BEFORE, etc.
|
680
|
+
# Raises IndexError if _index_ is out of bounds.
|
678
681
|
def setRowIconPosition(index, mode); end
|
679
682
|
|
680
|
-
# Return icon position of row header at
|
683
|
+
# Return icon position of row header at _index_.
|
684
|
+
# Raises IndexError if _index_ is out of bounds.
|
681
685
|
def getRowIconPosition(index); end
|
682
686
|
|
683
687
|
# Change column header justify, e.g. FXHeaderItem::RIGHT, etc.
|
688
|
+
# Raises IndexError if _index_ is out of bounds.
|
684
689
|
def setColumnJustify(index, justify); end
|
685
690
|
|
686
|
-
# Return justify of column header at
|
691
|
+
# Return justify of column header at _index_.
|
692
|
+
# Raises IndexError if _index_ is out of bounds.
|
687
693
|
def getColumnJustify(index); end
|
688
694
|
|
689
695
|
# Change row header justify, e.g. FXHeaderItem::RIGHT, etc.
|
696
|
+
# Raises IndexError if _index_ is out of bounds.
|
690
697
|
def setRowJustify(index, justify); end
|
691
698
|
|
692
|
-
# Return justify of row header at
|
699
|
+
# Return justify of row header at _index_.
|
700
|
+
# Raises IndexError if _index_ is out of bounds.
|
693
701
|
def getRowJustify(index); end
|
694
702
|
|
695
703
|
#
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
require 'fox16'
|
4
|
+
|
5
|
+
include Fox
|
6
|
+
|
7
|
+
class TC_FXRanged < Test::Unit::TestCase
|
8
|
+
|
9
|
+
WIDTH, HEIGHT, DEPTH = 2, 4, 6
|
10
|
+
|
11
|
+
def setup
|
12
|
+
@range = FXRanged.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_lower_is_a_vector
|
16
|
+
assert_instance_of(FXVec3d, @range.lower)
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_upper_is_a_vector
|
20
|
+
assert_instance_of(FXVec3d, @range.upper)
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_width
|
24
|
+
assert_equal(@range.width, WIDTH)
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_height
|
28
|
+
assert_equal(@range.height, HEIGHT)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_depth
|
32
|
+
assert_equal(@range.depth, DEPTH)
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_longest
|
36
|
+
assert_equal([@range.width, @range.height, @range.depth].max, @range.longest)
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_shortest
|
40
|
+
assert_equal([@range.width, @range.height, @range.depth].min, @range.shortest)
|
41
|
+
end
|
42
|
+
end
|
data/tests/TC_FXRangef.rb
CHANGED
@@ -12,37 +12,31 @@ class TC_FXRangef < Test::Unit::TestCase
|
|
12
12
|
@range = FXRangef.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
|
13
13
|
end
|
14
14
|
|
15
|
+
def test_lower_is_a_vector
|
16
|
+
assert_instance_of(FXVec3f, @range.lower)
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_upper_is_a_vector
|
20
|
+
assert_instance_of(FXVec3f, @range.upper)
|
21
|
+
end
|
22
|
+
|
15
23
|
def test_width
|
16
24
|
assert_equal(@range.width, WIDTH)
|
17
25
|
end
|
26
|
+
|
18
27
|
def test_height
|
19
28
|
assert_equal(@range.height, HEIGHT)
|
20
29
|
end
|
30
|
+
|
21
31
|
def test_depth
|
22
32
|
assert_equal(@range.depth, DEPTH)
|
23
33
|
end
|
34
|
+
|
24
35
|
def test_longest
|
25
36
|
assert_equal([@range.width, @range.height, @range.depth].max, @range.longest)
|
26
37
|
end
|
38
|
+
|
27
39
|
def test_shortest
|
28
40
|
assert_equal([@range.width, @range.height, @range.depth].min, @range.shortest)
|
29
41
|
end
|
30
|
-
def test_empty?
|
31
|
-
end
|
32
|
-
def test_overlaps?
|
33
|
-
end
|
34
|
-
def test_contains?
|
35
|
-
end
|
36
|
-
def test_include
|
37
|
-
end
|
38
|
-
def test_clipTo
|
39
|
-
end
|
40
|
-
def test_corners
|
41
|
-
end
|
42
|
-
def test_intersects?
|
43
|
-
end
|
44
|
-
def test_center
|
45
|
-
end
|
46
|
-
def test_diagonal
|
47
|
-
end
|
48
42
|
end
|
data/tests/TC_FXTable.rb
CHANGED
@@ -365,4 +365,197 @@ public
|
|
365
365
|
assert_equal("(1, 0)", @table.getItemText(1, 0))
|
366
366
|
assert_equal("(1, 1)", @table.getItemText(1, 1))
|
367
367
|
end
|
368
|
+
|
369
|
+
def test_set_column_icon_negative_index_raises_index_error
|
370
|
+
assert_raises(IndexError) {
|
371
|
+
@table.setColumnIcon(-1, nil)
|
372
|
+
}
|
373
|
+
end
|
374
|
+
|
375
|
+
def test_set_column_icon_large_index_raises_index_error
|
376
|
+
assert_raises(IndexError) {
|
377
|
+
@table.setColumnIcon(@table.numColumns, nil)
|
378
|
+
}
|
379
|
+
end
|
380
|
+
|
381
|
+
def test_get_column_icon_negative_index_raises_index_error
|
382
|
+
assert_raises(IndexError) {
|
383
|
+
@table.getColumnIcon(-1)
|
384
|
+
}
|
385
|
+
end
|
386
|
+
|
387
|
+
def test_get_column_icon_large_index_raises_index_error
|
388
|
+
assert_raises(IndexError) {
|
389
|
+
@table.getColumnIcon(@table.numColumns)
|
390
|
+
}
|
391
|
+
end
|
392
|
+
|
393
|
+
def test_set_column_icon_position_negative_index_raises_index_error
|
394
|
+
assert_raises(IndexError) {
|
395
|
+
@table.setColumnIconPosition(-1, 0)
|
396
|
+
}
|
397
|
+
end
|
398
|
+
|
399
|
+
def test_set_column_icon_position_large_index_raises_index_error
|
400
|
+
assert_raises(IndexError) {
|
401
|
+
@table.setColumnIconPosition(@table.numColumns, 0)
|
402
|
+
}
|
403
|
+
end
|
404
|
+
|
405
|
+
def test_get_column_icon_position_negative_index_raises_index_error
|
406
|
+
assert_raises(IndexError) {
|
407
|
+
@table.getColumnIconPosition(-1)
|
408
|
+
}
|
409
|
+
end
|
410
|
+
|
411
|
+
def test_get_column_icon_position_large_index_raises_index_error
|
412
|
+
assert_raises(IndexError) {
|
413
|
+
@table.getColumnIconPosition(@table.numColumns)
|
414
|
+
}
|
415
|
+
end
|
416
|
+
|
417
|
+
def test_set_column_justify_negative_index_raises_index_error
|
418
|
+
assert_raises(IndexError) {
|
419
|
+
@table.setColumnJustify(-1, 0)
|
420
|
+
}
|
421
|
+
end
|
422
|
+
|
423
|
+
def test_set_column_justify_large_index_raises_index_error
|
424
|
+
assert_raises(IndexError) {
|
425
|
+
@table.setColumnJustify(@table.numColumns, 0)
|
426
|
+
}
|
427
|
+
end
|
428
|
+
|
429
|
+
def test_get_column_justify_negative_index_raises_index_error
|
430
|
+
assert_raises(IndexError) {
|
431
|
+
@table.getColumnJustify(-1)
|
432
|
+
}
|
433
|
+
end
|
434
|
+
|
435
|
+
def test_get_column_justify_large_index_raises_index_error
|
436
|
+
assert_raises(IndexError) {
|
437
|
+
@table.getColumnJustify(@table.numColumns)
|
438
|
+
}
|
439
|
+
end
|
440
|
+
|
441
|
+
def test_set_column_text_negative_index_raises_index_error
|
442
|
+
assert_raises(IndexError) {
|
443
|
+
@table.setColumnText(-1, "")
|
444
|
+
}
|
445
|
+
end
|
446
|
+
|
447
|
+
def test_set_column_text_large_index_raises_index_error
|
448
|
+
assert_raises(IndexError) {
|
449
|
+
@table.setColumnText(@table.numColumns, "")
|
450
|
+
}
|
451
|
+
end
|
452
|
+
|
453
|
+
def test_get_column_text_negative_index_raises_index_error
|
454
|
+
assert_raises(IndexError) {
|
455
|
+
@table.getColumnText(-1)
|
456
|
+
}
|
457
|
+
end
|
458
|
+
|
459
|
+
def test_get_column_text_large_index_raises_index_error
|
460
|
+
assert_raises(IndexError) {
|
461
|
+
@table.getColumnText(@table.numColumns)
|
462
|
+
}
|
463
|
+
end
|
464
|
+
|
465
|
+
def test_set_row_icon_negative_index_raises_index_error
|
466
|
+
assert_raises(IndexError) {
|
467
|
+
@table.setRowIcon(-1, nil)
|
468
|
+
}
|
469
|
+
end
|
470
|
+
|
471
|
+
def test_set_row_icon_large_index_raises_index_error
|
472
|
+
assert_raises(IndexError) {
|
473
|
+
@table.setRowIcon(@table.numRows, nil)
|
474
|
+
}
|
475
|
+
end
|
476
|
+
|
477
|
+
def test_get_row_icon_negative_index_raises_index_error
|
478
|
+
assert_raises(IndexError) {
|
479
|
+
@table.getRowIcon(-1)
|
480
|
+
}
|
481
|
+
end
|
482
|
+
|
483
|
+
def test_get_row_icon_large_index_raises_index_error
|
484
|
+
assert_raises(IndexError) {
|
485
|
+
@table.getRowIcon(@table.numRows)
|
486
|
+
}
|
487
|
+
end
|
488
|
+
|
489
|
+
def test_set_row_icon_position_negative_index_raises_index_error
|
490
|
+
assert_raises(IndexError) {
|
491
|
+
@table.setRowIconPosition(-1, 0)
|
492
|
+
}
|
493
|
+
end
|
494
|
+
|
495
|
+
def test_set_row_icon_position_large_index_raises_index_error
|
496
|
+
assert_raises(IndexError) {
|
497
|
+
@table.setRowIconPosition(@table.numRows, 0)
|
498
|
+
}
|
499
|
+
end
|
500
|
+
|
501
|
+
def test_get_row_icon_position_negative_index_raises_index_error
|
502
|
+
assert_raises(IndexError) {
|
503
|
+
@table.getRowIconPosition(-1)
|
504
|
+
}
|
505
|
+
end
|
506
|
+
|
507
|
+
def test_get_row_icon_position_large_index_raises_index_error
|
508
|
+
assert_raises(IndexError) {
|
509
|
+
@table.getRowIconPosition(@table.numRows)
|
510
|
+
}
|
511
|
+
end
|
512
|
+
|
513
|
+
def test_set_row_justify_negative_index_raises_index_error
|
514
|
+
assert_raises(IndexError) {
|
515
|
+
@table.setRowJustify(-1, 0)
|
516
|
+
}
|
517
|
+
end
|
518
|
+
|
519
|
+
def test_set_row_justify_large_index_raises_index_error
|
520
|
+
assert_raises(IndexError) {
|
521
|
+
@table.setRowJustify(@table.numRows, 0)
|
522
|
+
}
|
523
|
+
end
|
524
|
+
|
525
|
+
def test_get_row_justify_negative_index_raises_index_error
|
526
|
+
assert_raises(IndexError) {
|
527
|
+
@table.getRowJustify(-1)
|
528
|
+
}
|
529
|
+
end
|
530
|
+
|
531
|
+
def test_get_row_justify_large_index_raises_index_error
|
532
|
+
assert_raises(IndexError) {
|
533
|
+
@table.getRowJustify(@table.numRows)
|
534
|
+
}
|
535
|
+
end
|
536
|
+
|
537
|
+
def test_set_row_text_negative_index_raises_index_error
|
538
|
+
assert_raises(IndexError) {
|
539
|
+
@table.setRowText(-1, "")
|
540
|
+
}
|
541
|
+
end
|
542
|
+
|
543
|
+
def test_set_row_text_large_index_raises_index_error
|
544
|
+
assert_raises(IndexError) {
|
545
|
+
@table.setRowText(@table.numRows, "")
|
546
|
+
}
|
547
|
+
end
|
548
|
+
|
549
|
+
def test_get_row_text_negative_index_raises_index_error
|
550
|
+
assert_raises(IndexError) {
|
551
|
+
@table.getRowText(-1)
|
552
|
+
}
|
553
|
+
end
|
554
|
+
|
555
|
+
def test_get_row_text_large_index_raises_index_error
|
556
|
+
assert_raises(IndexError) {
|
557
|
+
@table.getRowText(@table.numRows)
|
558
|
+
}
|
559
|
+
end
|
560
|
+
|
368
561
|
end
|