[gnome-music] tests: don't check for nextBtn status, as it may be disabled as artist/album may have one song only
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] tests: don't check for nextBtn status, as it may be disabled as artist/album may have one song only
- Date: Mon, 3 Jun 2013 14:21:23 +0000 (UTC)
commit 506287a4a4f568230b417cd11e74f2160c998a20
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Jun 3 16:21:15 2013 +0200
tests: don't check for nextBtn status, as it may be disabled as artist/album may have one song only
tests/tests_albumPlayback.js | 5 +++--
tests/tests_artistsPlayback.js | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/tests_albumPlayback.js b/tests/tests_albumPlayback.js
index 16846e7..38c4316 100644
--- a/tests/tests_albumPlayback.js
+++ b/tests/tests_albumPlayback.js
@@ -107,7 +107,8 @@ function testAlbumViewPlayback() {
let player = albumWidget.player;
assertFalse(player.prevBtn.get_sensitive())
assertFalse(player.playBtn.get_sensitive())
- assertFalse(player.nextBtn.get_sensitive())
+ // TODO: this should be verified only if album has more than one song
+ //assertFalse(player.nextBtn.get_sensitive())
// Artist and track labels are empty
assertEquals(player.artistLabel.get_label(), "")
@@ -130,7 +131,7 @@ function testAlbumViewPlayback() {
assertFalse(player.prevBtn.get_sensitive())
assertTrue(player.playBtn.get_sensitive())
// This is set to False just because tests wait for one and only track to be loaded
- assertFalse(player.nextBtn.get_sensitive())
+ //assertFalse(player.nextBtn.get_sensitive())
// Scale value is set to 0
assertEquals(player.progressScale.get_value(), 0)
diff --git a/tests/tests_artistsPlayback.js b/tests/tests_artistsPlayback.js
index 8a4234b..ddb3636 100644
--- a/tests/tests_artistsPlayback.js
+++ b/tests/tests_artistsPlayback.js
@@ -117,7 +117,8 @@ function testArtistsViewPlayback() {
// Buttons become enabled
assertFalse(player.prevBtn.get_sensitive())
assertTrue(player.playBtn.get_sensitive())
- assertTrue(player.nextBtn.get_sensitive())
+ // TODO: Verify this only if artist has more than one song
+ //assertTrue(player.nextBtn.get_sensitive())
// Scale value is set to 0
assertEquals(player.progressScale.get_value(), 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]