~attente/unity8/1634508

« back to all changes in this revision

Viewing changes to tests/qmltests/Greeter/tst_Greeter.qml

  • Committer: Bileto Bot
  • Author(s): Michael Terry
  • Date: 2016-09-22 07:40:11 UTC
  • mfrom: (2552.8.8 default-wallpaper)
  • Revision ID: ci-train-bot@canonical.com-20160922074011-b4t82zo3k7ipgtx0
Use the default system wallpaper instead of our custom one.

Additionally, crop the default wallpaper instead of rotating it, only darken the wallpaper if it's not the default one, and avoid reloading the wallpaper when the device is rotated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    width: units.gu(120)
30
30
    height: units.gu(80)
31
31
 
32
 
    property url defaultBackground: Qt.resolvedUrl("../../../qml/graphics/tablet_background.jpg")
 
32
    property url defaultBackground: "/usr/share/backgrounds/warty-final-ubuntu.png"
33
33
 
34
34
    Component.onCompleted: {
35
35
        // set the mock mode before loading
368
368
            compare(view.background, Qt.resolvedUrl("testing"));
369
369
        }
370
370
 
 
371
        function test_hasCustomBackground() {
 
372
            verify(!view.hasCustomBackground);
 
373
            greeter.hasCustomBackground = true;
 
374
            verify(view.hasCustomBackground);
 
375
        }
 
376
 
371
377
        function test_notifyAboutToFocusApp() {
372
378
            greeter.notifyUserRequestedApp("fake-app");
373
379
            compare(viewTryToUnlockSpy.count, 1);