[Xfce4-commits] <midori:master> Test gaps in numbering and swapping in speed dial
Christian Dywan
noreply at xfce.org
Wed Sep 12 22:38:04 CEST 2012
Updating branch refs/heads/master
to ad4e07505182a066f0edb8495fed021ebab3eaea (commit)
from 00cb292b80444ac000093a778ade5db99b294592 (commit)
commit ad4e07505182a066f0edb8495fed021ebab3eaea
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Sep 12 22:35:28 2012 +0200
Test gaps in numbering and swapping in speed dial
tests/speeddial.vala | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/tests/speeddial.vala b/tests/speeddial.vala
index d425569..e696ea4 100644
--- a/tests/speeddial.vala
+++ b/tests/speeddial.vala
@@ -63,6 +63,25 @@ static void speeddial_load () {
Katze.assert_str_equal (data, dial_data.keyfile.get_string ("Dial 1", "title"), "Lorem");
dial_data.save_message ("speed_dial-save-delete 1");
Katze.assert_str_equal (data, dial_data.get_next_free_slot (), "Dial 1");
+
+ data = get_test_file ("""
+ [settings]
+ columns=3
+ rows=3
+
+ [Dial 2]
+ uri=http://green.cat
+ title=Green cat is green
+
+ [Dial 4]
+ uri=http://heise.de
+ title=IT-News
+ """);
+ dial_data = new Midori.SpeedDial (data, "");
+ FileUtils.remove (data);
+ Katze.assert_str_equal (data, dial_data.get_next_free_slot (), "Dial 1");
+ dial_data.save_message ("speed_dial-save-swap 2 4");
+ Katze.assert_str_equal (data, dial_data.keyfile.get_string ("Dial 2", "title"), "IT-News");
}
void main (string[] args) {
More information about the Xfce4-commits
mailing list