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-14 23:16:43 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-14 23:16:43 (GMT)
commitae9b28cb1b26a5181ec6bcfae0c44b8dd47e760c (patch)
treec77e70a92fa7e2ac73f1e9feae077124fa1612b6 /tests
parent30eedd9e2e4ef537a67680b5903b3b4b5edc1b9b (diff)
Add GPL headers, remove some obsolete tests
Diffstat (limited to 'tests')
-rw-r--r--tests/simulator/demo/chaitanya.py16
-rw-r--r--tests/simulator/demo/others.py16
-rw-r--r--tests/simulator/demo/penelope.py16
-rw-r--r--[-rwxr-xr-x]tests/simulator/simulator17
-rw-r--r--[-rwxr-xr-x]tests/test-browser.py17
-rwxr-xr-xtests/test-grid.py59
-rwxr-xr-xtests/test-icons.py45
-rw-r--r--[-rwxr-xr-x]tests/test-snowflake-box.py17
-rw-r--r--[-rwxr-xr-x]tests/test-spread-box.py16
-rw-r--r--[-rwxr-xr-x]tests/test-theme.py17
-rw-r--r--[-rwxr-xr-x]tests/test-window-manager.py17
11 files changed, 149 insertions, 104 deletions
diff --git a/tests/simulator/demo/chaitanya.py b/tests/simulator/demo/chaitanya.py
index 09423cb..7d374a3 100644
--- a/tests/simulator/demo/chaitanya.py
+++ b/tests/simulator/demo/chaitanya.py
@@ -1,3 +1,19 @@
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
from sugar.simulator import Bot
bot = Bot()
diff --git a/tests/simulator/demo/others.py b/tests/simulator/demo/others.py
index 6e20425..7fee290 100644
--- a/tests/simulator/demo/others.py
+++ b/tests/simulator/demo/others.py
@@ -1,3 +1,19 @@
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
import random
from sugar.simulator import Bot
diff --git a/tests/simulator/demo/penelope.py b/tests/simulator/demo/penelope.py
index 4841566..60cc1fe 100644
--- a/tests/simulator/demo/penelope.py
+++ b/tests/simulator/demo/penelope.py
@@ -1,3 +1,19 @@
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
from sugar.simulator import Bot
bot = Bot()
diff --git a/tests/simulator/simulator b/tests/simulator/simulator
index 9faae83..6a0a0a8 100755..100644
--- a/tests/simulator/simulator
+++ b/tests/simulator/simulator
@@ -1,4 +1,21 @@
#!/usr/bin/python
+
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
import os
import gobject
diff --git a/tests/test-browser.py b/tests/test-browser.py
index 6407df8..c7180be 100755..100644
--- a/tests/test-browser.py
+++ b/tests/test-browser.py
@@ -1,4 +1,21 @@
#!/usr/bin/python
+
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
import pygtk
pygtk.require('2.0')
diff --git a/tests/test-grid.py b/tests/test-grid.py
deleted file mode 100755
index 7d03137..0000000
--- a/tests/test-grid.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/python
-import pygtk
-pygtk.require('2.0')
-
-from sugar.session.UITestSession import UITestSession
-
-session = UITestSession()
-session.start()
-
-import gtk
-import goocanvas
-
-from sugar.graphics.iconcolor import IconColor
-from sugar.graphics.IconItem import IconItem
-from sugar.graphics.CanvasView import CanvasView
-from sugar.graphics.CanvasBox import CanvasBox
-from sugar.graphics.Grid import Grid
-
-def _new_icon_clicked_cb(icon):
- box.remove_child(icon)
-
-def _icon_clicked_cb(icon):
- icon = IconItem(color=IconColor(), icon_name='activity-groupchat')
- icon.connect('clicked', _new_icon_clicked_cb)
- box.set_constraints(icon, 3, 3)
- box.add_child(icon, 0)
-
-model = goocanvas.CanvasModelSimple()
-root = model.get_root_item()
-
-grid = Grid()
-
-box = CanvasBox(grid, CanvasBox.HORIZONTAL, 1)
-grid.set_constraints(box, 3, 3)
-root.add_child(box)
-
-rect = goocanvas.Rect(fill_color='red')
-box.set_constraints(rect, 3, 3)
-box.add_child(rect)
-
-icon = IconItem(color=IconColor(), icon_name='activity-web')
-icon.connect('clicked', _icon_clicked_cb)
-box.set_constraints(icon, 3, 3)
-box.add_child(icon)
-
-icon = IconItem(color=IconColor(), icon_name='activity-groupchat')
-box.set_constraints(icon, 3, 3)
-box.add_child(icon)
-
-window = gtk.Window()
-window.connect("destroy", lambda w: gtk.main_quit())
-window.show()
-
-canvas = CanvasView()
-canvas.show()
-window.add(canvas)
-canvas.set_model(model)
-
-gtk.main()
diff --git a/tests/test-icons.py b/tests/test-icons.py
deleted file mode 100755
index f3b6037..0000000
--- a/tests/test-icons.py
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/python
-import pygtk
-pygtk.require('2.0')
-
-from sugar.session.UITestSession import UITestSession
-
-session = UITestSession()
-session.start()
-
-import sys
-import random
-
-import gtk
-import hippo
-
-from sugar.graphics import IconColor
-from sugar.graphics.CanvasIcon import CanvasIcon
-from sugar.graphics.CanvasView import CanvasView
-
-window = gtk.Window()
-window.connect("destroy", lambda w: gtk.main_quit())
-window.show()
-
-canvas = hippo.Canvas()
-canvas.show()
-window.add(canvas)
-
-box = hippo.CanvasBox(background_color=0x4f4f4fff)
-canvas.set_root(box)
-
-icon_names = [ 'stock-buddy', 'activity-groupchat', 'activity-web']
-
-k = 0
-while k < 1:
- i = 0
- while i < 10:
- color = IconColor.IconColor()
- icon_name_n = int(random.random() * len(icon_names))
- icon = CanvasIcon(icon_name=icon_names[icon_name_n],
- size=75, color=color)
- box.append(icon, 0)
- i += 1
- k += 1
-
-gtk.main()
diff --git a/tests/test-snowflake-box.py b/tests/test-snowflake-box.py
index 8c0c2fa..8666743 100755..100644
--- a/tests/test-snowflake-box.py
+++ b/tests/test-snowflake-box.py
@@ -1,4 +1,21 @@
#!/usr/bin/python
+
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
import pygtk
pygtk.require('2.0')
import gobject
diff --git a/tests/test-spread-box.py b/tests/test-spread-box.py
index e503a45..6c1672b 100755..100644
--- a/tests/test-spread-box.py
+++ b/tests/test-spread-box.py
@@ -1,3 +1,19 @@
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# 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 pygtk
pygtk.require('2.0')
diff --git a/tests/test-theme.py b/tests/test-theme.py
index e049fb1..4c5d2e7 100755..100644
--- a/tests/test-theme.py
+++ b/tests/test-theme.py
@@ -1,4 +1,21 @@
#!/usr/bin/python
+
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
import pygtk
pygtk.require('2.0')
diff --git a/tests/test-window-manager.py b/tests/test-window-manager.py
index 413a9dd..5a0274b 100755..100644
--- a/tests/test-window-manager.py
+++ b/tests/test-window-manager.py
@@ -1,4 +1,21 @@
#!/usr/bin/python
+
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
import pygtk
pygtk.require('2.0')