Fixed unit test for bug_847 mandelbug.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
Renato Filho 2011-07-21 17:44:57 -03:00
commit 55fb3a133d
2 changed files with 4 additions and 5 deletions

View file

@ -4,14 +4,12 @@
# Released under the same terms as PySide itself # Released under the same terms as PySide itself
# 2011-05-04 Thomas Perl <m@thp.io> # 2011-05-04 Thomas Perl <m@thp.io>
import unittest import unittest
from PySide.QtCore import Slot, Signal, QUrl from PySide.QtCore import Slot, Signal, QUrl
from PySide.QtGui import QApplication
from PySide.QtDeclarative import QDeclarativeView from PySide.QtDeclarative import QDeclarativeView
from helper import adjust_filename, TimedQApplication from helper import adjust_filename, UsesQApplication
class View(QDeclarativeView): class View(QDeclarativeView):
def __init__(self): def __init__(self):
@ -26,9 +24,10 @@ class View(QDeclarativeView):
called = Signal(int, int) called = Signal(int, int)
class TestQML(TimedQApplication): class TestQML(UsesQApplication):
def done(self, x, y): def done(self, x, y):
self._sucess = True self._sucess = True
self.app.quit()
def testPythonSlot(self): def testPythonSlot(self):
self._sucess = False self._sucess = False

View file

@ -15,7 +15,7 @@ Rectangle {
} }
Timer { Timer {
interval: 1; running: true; interval: 100; running: true;
onTriggered: { onTriggered: {
if (pythonObject != undefined) { if (pythonObject != undefined) {
pythonObject.blubb(42, 84) pythonObject.blubb(42, 84)