[pitivi] tests: Update test_mainwindow
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests: Update test_mainwindow
- Date: Wed, 16 Sep 2015 15:50:02 +0000 (UTC)
commit 6eae842f26edc937941fe32463f43723105cc744
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Jul 10 18:26:24 2015 +0200
tests: Update test_mainwindow
Summary: Depends on D255
Reviewers: Mathieu_Du, aleb
Differential Revision: https://phabricator.freedesktop.org/D256
tests/test_mainwindow.py | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/tests/test_mainwindow.py b/tests/test_mainwindow.py
index e0374ca..724e82b 100644
--- a/tests/test_mainwindow.py
+++ b/tests/test_mainwindow.py
@@ -33,17 +33,12 @@ class TestMainWindow(TestCase):
def testSwitchContextTab(self):
for expected_tab, bElement in [
- (2, GES.TitleSource()),
- (1, GES.VideoTransition()),
- (0, GES.VideoUriSource()),
- (1, GES.VideoTransition()),
- (0, GES.ImageSource()),
- (1, GES.AudioTransition()),
- (0, GES.AudioUriSource()),
- (1, GES.AudioTransition())]:
+ (2, GES.TitleClip()),
+ (0, GES.SourceClip()),
+ (1, GES.TransitionClip())]:
self.mainwindow.switchContextTab(bElement)
self.assertEqual(
- expected_tab, self.mainwindow.context_tabs.get_current_page())
+ expected_tab, self.mainwindow.context_tabs.get_current_page(), bElement)
# Make sure the tab does not change when using an invalid argument.
self.mainwindow.switchContextTab("invalid")
self.assertEqual(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]