summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkmaraas <kmaraas@e2bd861d-eb25-0410-b326-f6ed22b6b98c>2005-11-02 18:01:24 +0000
committerkmaraas <kmaraas@e2bd861d-eb25-0410-b326-f6ed22b6b98c>2005-11-02 18:01:24 +0000
commit2becfc6cae383a81efa84a8fbc8534b5f81661a6 (patch)
tree8b811668b4bca085a875beddfc4fc0562b5935a8 /test
parentbe97295988b5f009b39b00d8da5f5fc2516f6cc7 (diff)
downloadat-spi2-core-2becfc6cae383a81efa84a8fbc8534b5f81661a6.tar.gz
2005-11-02 Kjartan Maraas <kmaraas@gnome.org>
* atk-bridge/bridge.c: (spi_atk_bridge_signal_listener): * cspi/spi_streamablecontent.c: (AccessibleStreamableContent_seek): * registryd/deviceeventcontroller.c: (spi_controller_notify_mouselisteners), (impl_generate_keyboard_event): * test/screen-review-test.c: (chunk_bounds_within): * test/test-simple.c: (test_desktop): Remove lots of unused code and fix compiler warnings. Closes bug #320049. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@770 e2bd861d-eb25-0410-b326-f6ed22b6b98c
Diffstat (limited to 'test')
-rw-r--r--test/screen-review-test.c4
-rw-r--r--test/test-simple.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/test/screen-review-test.c b/test/screen-review-test.c
index a2d72825..482180be 100644
--- a/test/screen-review-test.c
+++ b/test/screen-review-test.c
@@ -161,13 +161,11 @@ main (int argc, char **argv)
static inline gboolean
chunk_bounds_within (TextChunk *chunk, TextChunk *test_chunk)
{
- int x1, x2, tx1, tx2;
+ int x1, tx1;
gboolean gtx1, ltx2;
x1 = chunk->clip_bounds.x;
- x2 = x1 + chunk->clip_bounds.width;
tx1 = test_chunk->clip_bounds.x;
- tx2 = tx1 + test_chunk->clip_bounds.width;
gtx1 = (chunk->clip_bounds.x >= test_chunk->clip_bounds.x);
ltx2 = (chunk->clip_bounds.x + chunk->clip_bounds.width
<= test_chunk->clip_bounds.x + test_chunk->clip_bounds.width);
diff --git a/test/test-simple.c b/test/test-simple.c
index 78527fd6..3c469ee6 100644
--- a/test/test-simple.c
+++ b/test/test-simple.c
@@ -196,7 +196,6 @@ test_desktop (void)
{
Accessible *desktop;
Accessible *application;
- int length;
Accessible **list;
fprintf (stderr, "Testing desktop...\n");
@@ -205,7 +204,7 @@ test_desktop (void)
desktop = SPI_getDesktop (0);
g_assert (desktop != NULL);
- g_assert ((length = SPI_getDesktopList (&list)) > 0);
+ g_assert ((SPI_getDesktopList (&list)) > 0);
g_assert (list[0] == desktop);
SPI_freeDesktopList (list);