~ci-train-bot/unity8/unity8-ubuntu-zesty-2481

« back to all changes in this revision

Viewing changes to tests/qmltests/tst_OrientedShell.qml

  • Committer: Bileto Bot
  • Author(s): Lukáš Tinkl
  • Date: 2017-03-08 09:50:22 UTC
  • mfrom: (2802.2.7 no-touchscreen-no-tutorial)
  • Revision ID: ci-train-bot@canonical.com-20170308095022-o8ao2v4535y9n061
Disable the tutorial when there's no touchscreen (LP: #1661557)

Approved by: Michał Sawicz, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1641
1641
            tryCompare(dialogLoader, "item", null);
1642
1642
            compare(window.activeFocusItem, surfaceItem);
1643
1643
        }
 
1644
 
 
1645
        function test_tutorialDisabledWithNoTouchscreen() {
 
1646
            loadShell("desktop");
 
1647
            usageModeSelector.selectWindowed();
 
1648
 
 
1649
            MockInputDeviceBackend.addMockDevice("/touchscreen", InputInfo.TouchScreen);
 
1650
            var tutorial = findChild(shell, "tutorial");
 
1651
            tryCompare(tutorial, "paused", false);
 
1652
 
 
1653
            MockInputDeviceBackend.removeDevice("/touchscreen");
 
1654
            tryCompare(tutorial, "paused", true);
 
1655
        }
1644
1656
    }
1645
1657
}