File: frame.feature

package info (click to toggle)
e2wm 1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: lisp: 3,949; sh: 36; makefile: 29
file content (132 lines) | stat: -rw-r--r-- 4,715 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Feature: Multiple frame support
  In order to manage windows in multiple frames
  As a user
  I want to use E2WM with multiple frames

  Scenario: Comeback from unmanaged frame
    Given I enabled e2wm
     Then I should be in perspective "code"
     When I press "C-x 5 2"
     Then I should not be in e2wm-managed frame
     When I press "C-x 5 o"
     Then I should be in e2wm-managed frame
      And I should be in perspective "code"

  Scenario: Frame local keymap
    Given I enabled e2wm
     Then "e2wm:stop-management" should be called when I type "C-c ; Q"
     When I press "C-x 5 2"
     Then I should not be in e2wm-managed frame
      And key-binding "C-c ;" is undefined
     When I press "C-x 5 o"
     Then I should be in e2wm-managed frame
      And "e2wm:stop-management" should be called when I type "C-c ; Q"

  Scenario: Frame/perspective local keymap
    Given I enabled e2wm
     When I switch to "two" perspective
      And I switch to window "left" and open buffer "recordable-left"
      And I switch to window "right" and open buffer "recordable-right"
     When I press "C-x 5 2"
     Then I should not be in e2wm-managed frame
     When I press "C-x 5 o"
     Then I should be in e2wm-managed frame
      And I should be in perspective "two"
      And I should be in buffer "recordable-right"
     When I press "C-c ; -"
     Then I should be in buffer "recordable-left"
     When I press "C-c ; -"
     Then I should be in buffer "recordable-right"

  Scenario: Manage windows in two frames
    Given I enabled e2wm
     When I press "C-x 5 2"
     Then I should not be in e2wm-managed frame
    Given I enabled e2wm
     Then I should be in e2wm-managed frame
     When I press "C-x 5 o"
     Then I should be in e2wm-managed frame

  Scenario: Stopping window management of already dead frame
    Given I enabled e2wm
     When I press "C-x 5 2"
      And I press "C-x 5 1"
      And I disabled e2wm
     Then I should not be in e2wm-managed frame

  Scenario: Different perspective on different frame
    Given I enabled e2wm
      And I press "C-x 5 2"
      And I enabled e2wm
     Then I should be in perspective "code"
     When I press "C-x 5 o"
      And I switch to "two" perspective
      And I press "C-x 5 o"
     Then I should be in perspective "code"
      And "e2wm:dp-code-imenu-toggle-command" should be called when I type "C-c ; I"
      And I press "C-x 5 o"
     Then I should be in perspective "two"
      And "e2wm:dp-two-swap-buffers-command" should be called when I type "C-c ; -"

  Scenario: Stop one of managed frame
    Given I enabled e2wm
      And I press "C-x 5 2"
      And I enabled e2wm
     When I disabled e2wm
     Then I should not be in e2wm-managed frame
     When I press "C-x 5 o"
     Then I should be in e2wm-managed frame
      And "e2wm:dp-code-imenu-toggle-command" should be called when I type "C-c ; I"

  Scenario: Stop all managed frames
    Given I enabled e2wm
      And I press "C-x 5 2"
      And I enabled e2wm
     When I disabled e2wm
      And I press "C-x 5 o"
      And I disabled e2wm
     Then I should not be in e2wm-managed frame
      And key-binding "C-c ;" is undefined
      And I press "C-x 5 o"
      And I should not be in e2wm-managed frame
      And key-binding "C-c ;" is undefined

  Scenario: Restart one of managed frame
    Given I enabled e2wm
      And I press "C-x 5 2"
      And I enabled e2wm
      And I press "C-x 5 o"
      And I disabled e2wm
      And I press "C-x 5 o"
      And I disabled e2wm
      And I press "C-x 5 o"
      And I enabled e2wm
     Then I should be in e2wm-managed frame
      And "e2wm:dp-code-imenu-toggle-command" should be called when I type "C-c ; I"
     When I press "C-x 5 o"
     Then I should not be in e2wm-managed frame
      And key-binding "C-c ;" is undefined

  Scenario: Original display-buffer-function should be used in unmanaged frame
    Given I have custom display-buffer-function
      And I enabled e2wm
     Then my custom display-buffer-function should not be enabled
     When I press "C-x 5 2"
     Then my custom display-buffer-function should be enabled
     When I press "C-x 5 o"
     Then my custom display-buffer-function should not be enabled

  Scenario: Forcefully disable multiple frames
    Given I enabled e2wm
      And I press "C-x 5 2"
      And I enabled e2wm
      And I press "C-x 5 2"
      And I enabled e2wm
     Then "e2wm:pst-minor-mode" is on
     When I disabled e2wm forcefully
     Then "e2wm:pst-minor-mode" is off
     Then I should not be in e2wm-managed frame
     When I press "C-x 5 0"
     Then I should not be in e2wm-managed frame
     When I press "C-x 5 0"
     Then I should not be in e2wm-managed frame