Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-25 12:31:44 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-25 12:31:44 (GMT)
commitebb896cb5b11287e75f57f39aabbac3fb1484b3c (patch)
tree19472ff6a318ee0fda788c2a2f53d1ec7f18a017 /tests
parent15e3a4f7914984422af0086cadc5bcea5a14f34a (diff)
Another iteration on the spread out box. Make it work
well also for the mesh.
Diffstat (limited to 'tests')
-rwxr-xr-x[-rw-r--r--]tests/test-spread-box.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/tests/test-spread-box.py b/tests/test-spread-box.py
index 6c1672b..a5da735 100644..100755
--- a/tests/test-spread-box.py
+++ b/tests/test-spread-box.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
@@ -14,19 +16,13 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-#!/usr/bin/python
+import sys
+import random
+
import pygtk
pygtk.require('2.0')
import gobject
-from sugar.session.UITestSession import UITestSession
-
-session = UITestSession()
-session.start()
-
-import sys
-import random
-
import gtk
import hippo
@@ -39,9 +35,9 @@ def _create_icon():
icon = CanvasIcon(size=100, color=color,
icon_name='stock-buddy')
- box.add(icon)
+ box.add_item(icon)
- return (len(box.get_children()) < 15)
+ return (len(box.get_children()) < 20)
window = gtk.Window()
window.connect("destroy", lambda w: gtk.main_quit())