@@ -19,32 +19,12 @@ function test() {
1919 gDebugger = gPane . contentWindow ;
2020 gView = gDebugger . DebuggerView ;
2121
22- testPanesState ( ) ;
23-
24- gView . toggleStackframesAndBreakpointsPane ( { visible : true } ) ;
25- gView . toggleVariablesPane ( { visible : true } ) ;
2622 testPaneCollapse1 ( ) ;
2723 testPaneCollapse2 ( ) ;
28-
2924 closeDebuggerAndFinish ( ) ;
3025 } ) ;
3126}
3227
33- function testPanesState ( ) {
34- let togglePanesButton =
35- gDebugger . document . getElementById ( "toggle-panes" ) ;
36-
37- ok ( togglePanesButton . getAttribute ( "stackframesAndBreakpointsHidden" ) ,
38- "The stackframes and breakpoints pane should initially be invisible." ) ;
39- is ( gDebugger . Prefs . stackframesPaneVisible , true ,
40- "The stackframes and breakpoints pane should initially be preffed as visible." ) ;
41-
42- ok ( togglePanesButton . getAttribute ( "variablesHidden" ) ,
43- "The stackframes and breakpoints pane should initially be invisible." ) ;
44- is ( gDebugger . Prefs . variablesPaneVisible , true ,
45- "The stackframes and breakpoints pane should initially be preffed as visible." ) ;
46- }
47-
4828function testPaneCollapse1 ( ) {
4929 let stackframesAndBrekpoints =
5030 gDebugger . document . getElementById ( "stackframes+breakpoints" ) ;
@@ -55,16 +35,16 @@ function testPaneCollapse1() {
5535 is ( width , gDebugger . Prefs . stackframesWidth ,
5636 "The stackframes and breakpoints pane has an incorrect width." ) ;
5737 is ( stackframesAndBrekpoints . style . marginLeft , "0px" ,
58- "The stackframes and breakpoints pane has an incorrect left margin." ) ;
38+ "The stackframes and breakpoints pane has an incorrect initial left margin." ) ;
5939 ok ( ! stackframesAndBrekpoints . hasAttribute ( "animated" ) ,
60- "The stackframes and breakpoints pane has an incorrect animated attribute." ) ;
40+ "The stackframes and breakpoints pane has an incorrect initial animated attribute." ) ;
6141 ok ( ! togglePanesButton . getAttribute ( "stackframesAndBreakpointsHidden" ) ,
62- "The stackframes and breakpoints pane should at this point be visible." ) ;
42+ "The stackframes and breakpoints pane should initially be visible." ) ;
6343
6444 is ( gDebugger . Prefs . stackframesPaneVisible , true ,
65- "The stackframes and breakpoints pane should at this point be visible." ) ;
45+ "The stackframes and breakpoints pane should initially be visible." ) ;
6646
67- gView . toggleStackframesAndBreakpointsPane ( { visible : false , animated : true } ) ;
47+ gView . showStackframesAndBreakpointsPane ( false , true ) ;
6848
6949 is ( gDebugger . Prefs . stackframesPaneVisible , false ,
7050 "The stackframes and breakpoints pane should be hidden after collapsing." ) ;
@@ -82,7 +62,7 @@ function testPaneCollapse1() {
8262 is ( gDebugger . Prefs . stackframesPaneVisible , false ,
8363 "The stackframes and breakpoints pane should be hidden before uncollapsing." ) ;
8464
85- gView . toggleStackframesAndBreakpointsPane ( { visible : true , animated : false } ) ;
65+ gView . showStackframesAndBreakpointsPane ( true , false ) ;
8666
8767 is ( gDebugger . Prefs . stackframesPaneVisible , true ,
8868 "The stackframes and breakpoints pane should be visible after uncollapsing." ) ;
@@ -107,16 +87,16 @@ function testPaneCollapse2() {
10787 is ( width , gDebugger . Prefs . variablesWidth ,
10888 "The variables pane has an incorrect width." ) ;
10989 is ( variables . style . marginRight , "0px" ,
110- "The variables pane has an incorrect right margin." ) ;
90+ "The variables pane has an incorrect initial right margin." ) ;
11191 ok ( ! variables . hasAttribute ( "animated" ) ,
112- "The variables pane has an incorrect animated attribute." ) ;
92+ "The variables pane has an incorrect initial animated attribute." ) ;
11393 ok ( ! togglePanesButton . getAttribute ( "variablesHidden" ) ,
114- "The variables pane should at this point be visible." ) ;
94+ "The variables pane should initially be visible." ) ;
11595
11696 is ( gDebugger . Prefs . variablesPaneVisible , true ,
117- "The variables pane should at this point be visible." ) ;
97+ "The variables pane should initially be visible." ) ;
11898
119- gView . toggleVariablesPane ( { visible : false , animated : true } ) ;
99+ gView . showVariablesPane ( false , true ) ;
120100
121101 is ( gDebugger . Prefs . variablesPaneVisible , false ,
122102 "The variables pane should be hidden after collapsing." ) ;
@@ -134,7 +114,7 @@ function testPaneCollapse2() {
134114 is ( gDebugger . Prefs . variablesPaneVisible , false ,
135115 "The variables pane should be hidden before uncollapsing." ) ;
136116
137- gView . toggleVariablesPane ( { visible : true , animated : false } ) ;
117+ gView . showVariablesPane ( true , false ) ;
138118
139119 is ( gDebugger . Prefs . variablesPaneVisible , true ,
140120 "The variables pane should be visible after uncollapsing." ) ;
0 commit comments