Close desktop safety gaps
This commit is contained in:
@@ -68,6 +68,15 @@ done
|
||||
[[ "$(qs_for_harness ipc call wallpaper-settings-test activate per-monitor /images/c.jpg)" \
|
||||
== '["assign:DP-2:/images/c.jpg"]' ]] || fail 'Per-display mode did not assign the selected output'
|
||||
|
||||
qs_for_harness ipc call wallpaper-settings-test selectOutput HDMI-A-1 >/dev/null
|
||||
qs_for_harness ipc call wallpaper-settings-test updateOutputs 'DP-2|HDMI-A-1' >/dev/null
|
||||
[[ "$(qs_for_harness ipc call wallpaper-settings-test selectedOutput)" == 'HDMI-A-1' ]] \
|
||||
|| fail 'a valid per-monitor selection was reset during topology reconciliation'
|
||||
qs_for_harness ipc call wallpaper-settings-test updateOutputs 'DP-2' >/dev/null
|
||||
selected_after_disconnect="$(qs_for_harness ipc call wallpaper-settings-test selectedOutput)"
|
||||
[[ "$selected_after_disconnect" == 'DP-2' ]] \
|
||||
|| fail "a disconnected per-monitor selection did not fall back to the primary output: $selected_after_disconnect"
|
||||
|
||||
states="$(qs_for_harness ipc call wallpaper-settings-test states)"
|
||||
jq -e '.selectedOutput == "DP-2"
|
||||
and .single == {"current":true,"selected":true}
|
||||
|
||||
Reference in New Issue
Block a user