2
* Copyright (C) 2014 Canonical, Ltd.
2
* Copyright (C) 2014-2015 Canonical, Ltd.
4
4
* This program is free software; you can redistribute it and/or modify
5
5
* it under the terms of the GNU General Public License as published by
69
69
property bool itemDestroyed: false
70
70
sourceComponent: Component {
72
property string indicatorProfile: "phone"
74
72
Component.onDestruction: {
75
73
shellLoader.itemDestroyed = true
397
395
var applicationsDisplayLoader = findChild(shell, "applicationsDisplayLoader")
399
397
// We start in phone mode
400
tryCompare(shell, "sideStageEnabled", false)
401
tryCompare(applicationsDisplayLoader, "tabletMode", false)
398
compare(shell.usageScenario, "phone");
399
compare(applicationsDisplayLoader.usageScenario, "phone");
403
401
var lockscreen = findChild(shell, "lockscreen")
404
402
lockscreen.emergencyCall()
405
403
confirmLockedApp("dialer-app")
407
405
// OK, we're in. Now try (but fail) to switch to tablet mode
409
tryCompare(shell, "sideStageEnabled", true)
410
tryCompare(applicationsDisplayLoader, "tabletMode", false)
406
shell.usageScenario = "tablet";
407
compare(applicationsDisplayLoader.usageScenario, "phone");
412
409
// And when we kill the app, we go back to locked tablet mode
414
411
var greeter = findChild(shell, "greeter")
415
412
tryCompare(greeter, "fullyShown", true)
416
tryCompare(shell, "sideStageEnabled", true)
417
tryCompare(applicationsDisplayLoader, "tabletMode", true)
413
compare(applicationsDisplayLoader.usageScenario, "tablet");
420
416
function test_emergencyDialerIncoming() {