diff options
Diffstat (limited to 'tests/test-spread-box.py')
-rwxr-xr-x[-rw-r--r--] | tests/test-spread-box.py | 18 |
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()) |