[pitivi] tests/test_track.py: update TrackObject priority test cases
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests/test_track.py: update TrackObject priority test cases
- Date: Tue, 16 Mar 2010 18:08:23 +0000 (UTC)
commit 451b8730cd3a7f06b8cffeeae1728e227784856c
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Thu Mar 4 13:19:18 2010 -0800
tests/test_track.py: update TrackObject priority test cases
tests/test_track.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_track.py b/tests/test_track.py
index f862d52..19d3453 100644
--- a/tests/test_track.py
+++ b/tests/test_track.py
@@ -104,9 +104,10 @@ class TestTrackObject(TestCase):
self.failUnlessEqual(self.monitor.out_point_changed_count, 1)
priority = 100
+ gnl_priority = 3 * 100 + 2 + obj._stagger
obj.priority = priority
self.failUnlessEqual(obj.priority, priority)
- self.failUnlessEqual(gnl_object.props.priority, priority)
+ self.failUnlessEqual(gnl_object.props.priority, gnl_priority)
self.failUnlessEqual(self.monitor.priority_changed_count, 1)
def testChangePropertiesFromGnlObject(self):
@@ -136,10 +137,11 @@ class TestTrackObject(TestCase):
self.failUnlessEqual(self.monitor.media_duration_changed_count, 1)
self.failUnlessEqual(self.monitor.out_point_changed_count, 1)
- priority = 100
- gnl_object.props.priority = priority
+ gnl_priority = 100
+ priority = (100 - 2 - obj._stagger) // 3
+ gnl_object.props.priority = gnl_priority
self.failUnlessEqual(obj.priority, priority)
- self.failUnlessEqual(gnl_object.props.priority, priority)
+ self.failUnlessEqual(gnl_object.props.priority, gnl_priority)
self.failUnlessEqual(self.monitor.priority_changed_count, 1)
def testTrimStart(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]