File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,17 @@ Feature: Correct window setup
3
3
As a user
4
4
I want to see correct watch, stack and status information
5
5
6
+ Scenario : The status window
7
+ Given I have a file example.php containing
8
+ """
9
+ <?php
10
+ $var1 = 1;
11
+ ?>
12
+ """
13
+ When I start the debugger with the PHP script example.php
14
+ Then the status should be break
15
+ And the status window should contain localhost:9000
16
+
6
17
Scenario : The watch window
7
18
Given I have a file example.php containing
8
19
"""
@@ -49,3 +60,5 @@ Feature: Correct window setup
49
60
When I step in
50
61
Then item 1 on the stack should show the file example2.php
51
62
And item 1 on the stack should show line 2
63
+ And item 2 on the stack should show the file example.php
64
+ And item 2 on the stack should show line 2
Original file line number Diff line number Diff line change
1
+ Then "the status should be $status" do |status |
2
+ vdebug . status . should == status
3
+ end
4
+
5
+ Then "the status window should contain $string" do |string |
6
+ vdebug . status_window_content . should include string
7
+ end
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ def status_window_content
94
94
fetch_buffer_content 'DebuggerStatus'
95
95
end
96
96
97
+ def status
98
+ /Status: (\S +)/ . match ( status_window_content ) [ 1 ]
99
+ end
100
+
97
101
protected
98
102
def fetch_buffer_content ( name )
99
103
bufnum = buffers . invert . fetch ( name )
You can’t perform that action at this time.
0 commit comments