~mmcg069/software-center/multi-screenshot-gallery

« back to all changes in this revision

Viewing changes to test/gtk3/test_search.py

  • Committer: Michael Vogt
  • Date: 2011-10-07 10:44:12 UTC
  • mfrom: (2434.4.4 sort-sel-tweaks)
  • Revision ID: michael.vogt@ubuntu.com-20111007104412-j5llcrzi4zia04re
* lp:~mmcg069/software-center/bug861778:
  - improved method, use less widgets and fix case where user 
    changes sort method in a search results list (LP: #861778)

* test/gtk3/test_appview.py:
  - add regression test for bug #861778

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        self._p()
41
41
        pane.on_search_terms_changed(None, "the")
42
42
        self._p()
 
43
        sortmode = pane.app_view.sort_methods_combobox.get_active_text()
 
44
        self.assertEqual(sortmode, "By Relevance")
43
45
        model = pane.app_view.tree_view.get_model()
44
46
        len1 = len(model)
45
47
        pane.on_search_terms_changed(None, "nosuchsearchtermforsure")