~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk

« back to all changes in this revision

Viewing changes to tests/unit_x11/tst_components/tst_hide_chrome.qml

  • Committer: Tarmac
  • Author(s): tpeeters
  • Date: 2013-12-05 13:51:49 UTC
  • mfrom: (879.1.5 tabBar-pressed)
  • Revision ID: tarmac-20131205135149-aplmcua06vls5cse
Improve detection of tab bar interaction.
Now using the new TabBar.pressed property instead of TabBar.selectionMode property, because selectionMode may be changed without user interaction (for example, when resuming an app in a following MR), and then the toolbar should not automatically hide.

Approved by Florian Boucault, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
            return tabBar;
80
80
        }
81
81
 
82
 
        function test_tabBar_selectionMode_closes_toolbar_bug1223600() {
 
82
        function test_tabBar_press_closes_toolbar_bug1223600() {
83
83
            testCase.setTabBarSelectionMode(false);
84
84
            var toolbar = testCase.openToolbar();
85
 
            testCase.setTabBarSelectionMode(true);
 
85
            testCase.mousePress(tabs.tabBar);
86
86
            compare(toolbar.opened, false, "Activating TabBar did not close toolbar");
 
87
            testCase.mouseRelease(tabs.tabBar);
 
88
            testCase.setTabBarSelectionMode(false);
87
89
        }
88
90
 
89
91
        function test_toolbar_press_closes_tabBar_bug1223606 () {