wok-current annotate marlin/stuff/marlin-fix-tests.patch @ rev 17800

Add mate-menus
author Yuri Pourre <yuripourre@gmail.com>
date Sat Mar 21 02:31:33 2015 -0300 (2015-03-21)
parents 2f27b6f8efc2
children
rev   line source
yuripourre@17707 1 # Opened ticket at https://bugs.launchpad.net/marlin/+bug/1404153
yuripourre@17707 2 # Reference: http://valadoc.org/#!api=gdk-3.0/Gdk.EventKey
yuripourre@17706 3 diff -rupN marlin-0.5/libwidgets/tests/tests-pathbar.vala marlin-0.5-new/libwidgets/tests/tests-pathbar.vala
yuripourre@17706 4 --- marlin-0.5/libwidgets/tests/tests-pathbar.vala 2015-02-26 22:56:43.937906000 -0300
yuripourre@17707 5 +++ marlin-0.5/libwidgets/tests/tests-pathbar.vala 2015-03-02 11:28:47.254657420 -0300
yuripourre@17707 6 @@ -35,7 +35,7 @@ void add_pathbar_tests()
yuripourre@17698 7 var bread_entry = new BreadcrumbsEntry();
yuripourre@17698 8 assert(bread_entry is BreadcrumbsEntry);
yuripourre@17698 9 assert(bread_entry.text == "");
yuripourre@17698 10 - Gdk.EventKey event = Gdk.EventKey();
yuripourre@17707 11 + Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
yuripourre@17698 12 event.window = breads.get_window();
yuripourre@17698 13 event.keyval = 0x061; /* a */
yuripourre@17698 14 bread_entry.key_press_event(event);
yuripourre@17707 15 @@ -122,7 +122,7 @@ void add_pathbar_tests()
yuripourre@17698 16 assert(bread_entry.text == "");
yuripourre@17698 17 bread_entry.text = "abdcefghij/";
yuripourre@17698 18 bread_entry.cursor = ("abdcefghij/").length;
yuripourre@17698 19 - Gdk.EventKey event = Gdk.EventKey();
yuripourre@17707 20 + Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
yuripourre@17698 21 event.state = Gdk.ModifierType.SHIFT_MASK;
yuripourre@17698 22 event.window = breads.get_window();
yuripourre@17698 23 event.keyval = 0xff51; /* left */
yuripourre@17707 24 @@ -136,7 +136,7 @@ void add_pathbar_tests()
yuripourre@17698 25 var bread_entry = new BreadcrumbsEntry();
yuripourre@17698 26 assert(bread_entry is BreadcrumbsEntry);
yuripourre@17698 27 assert(bread_entry.text == "");
yuripourre@17698 28 - Gdk.EventKey event = Gdk.EventKey();
yuripourre@17707 29 + Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
yuripourre@17698 30 event.window = breads.get_window();
yuripourre@17698 31 event.keyval = 0xff08; /* backspace */
yuripourre@17698 32 bread_entry.key_press_event(event);
yuripourre@17707 33 @@ -149,7 +149,7 @@ void add_pathbar_tests()
yuripourre@17698 34 BreadcrumbsEntry bread_entry = breads.entry;
yuripourre@17698 35 assert(bread_entry is BreadcrumbsEntry);
yuripourre@17698 36 assert(bread_entry.text == "");
yuripourre@17698 37 - Gdk.EventKey event = Gdk.EventKey();
yuripourre@17707 38 + Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
yuripourre@17698 39 event.window = breads.get_window();
yuripourre@17698 40 event.keyval = 0xff08; /* backspace */
yuripourre@17698 41 breads.key_press_event(event);