[pitivi] test_integration.py: fix some problems with Brush
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] test_integration.py: fix some problems with Brush
- Date: Fri, 20 Nov 2009 07:48:38 +0000 (UTC)
commit d5bac34f213b0aca4fe561785d7af8c4c6fb3356
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Mon Nov 9 11:44:03 2009 -0800
test_integration.py: fix some problems with Brush
tests/test_integration.py | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/tests/test_integration.py b/tests/test_integration.py
index cd40dd7..b8c8f6b 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -288,18 +288,17 @@ class Brush(Signallable):
gobject.timeout_add(self.delay, self._scrubTimeoutCb)
def _scrubTimeoutCb(self):
- time_ = random.randint(0, self.maxTime)
- priority = random.randint(0, self.maxPriority)
- self.context.editTo(time_, priority)
- self.count += 1
self.watchdog.keepAlive()
-
+ self.count += 1
if self.count < self.steps:
+ time_ = random.randint(0, self.maxTime)
+ priority = random.randint(0, self.maxPriority)
+ self.context.editTo(time_, priority)
self.emit("scrub-step", time_, priority)
return True
else:
self.context.editTo(self.time, self.priority)
- self.emit("scrub-step", self.time, self.maxPriority)
+ self.emit("scrub-step", self.time, self.priority)
self.context.finish()
self.emit("scrub-done")
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]