@@ -29,32 +29,32 @@ public void SetUpSteps()
2929 [ Test ]
3030 public void TestOpenCloseGroupWithNoSelectionMouse ( )
3131 {
32- AddAssert ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
32+ AddAssert ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
3333 CheckNoSelection ( ) ;
3434
35- ClickVisiblePanel < GroupPanel > ( 0 ) ;
36- AddUntilStep ( "some beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . GreaterThan ( 0 ) ) ;
35+ ClickVisiblePanel < PanelGroup > ( 0 ) ;
36+ AddUntilStep ( "some beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . GreaterThan ( 0 ) ) ;
3737 CheckNoSelection ( ) ;
3838
39- ClickVisiblePanel < GroupPanel > ( 0 ) ;
40- AddUntilStep ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
39+ ClickVisiblePanel < PanelGroup > ( 0 ) ;
40+ AddUntilStep ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
4141 CheckNoSelection ( ) ;
4242 }
4343
4444 [ Test ]
4545 public void TestOpenCloseGroupWithNoSelectionKeyboard ( )
4646 {
47- AddAssert ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
47+ AddAssert ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
4848 CheckNoSelection ( ) ;
4949
5050 SelectNextPanel ( ) ;
5151 Select ( ) ;
52- AddUntilStep ( "some beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . GreaterThan ( 0 ) ) ;
52+ AddUntilStep ( "some beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . GreaterThan ( 0 ) ) ;
5353 AddAssert ( "keyboard selected is expanded" , ( ) => GetKeyboardSelectedPanel ( ) ? . Expanded . Value , ( ) => Is . True ) ;
5454 CheckNoSelection ( ) ;
5555
5656 Select ( ) ;
57- AddUntilStep ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
57+ AddUntilStep ( "no beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . Zero ) ;
5858 AddAssert ( "keyboard selected is collapsed" , ( ) => GetKeyboardSelectedPanel ( ) ? . Expanded . Value , ( ) => Is . False ) ;
5959 CheckNoSelection ( ) ;
6060 }
@@ -87,10 +87,10 @@ public void TestCarouselRemembersSelection()
8787 AddUntilStep ( "drawable selection restored" , ( ) => GetSelectedPanel ( ) ? . Item ? . Model , ( ) => Is . EqualTo ( selection ) ) ;
8888 AddAssert ( "carousel item is visible" , ( ) => GetSelectedPanel ( ) ? . Item ? . IsVisible , ( ) => Is . True ) ;
8989
90- ClickVisiblePanel < GroupPanel > ( 0 ) ;
90+ ClickVisiblePanel < PanelGroup > ( 0 ) ;
9191 AddUntilStep ( "carousel item not visible" , GetSelectedPanel , ( ) => Is . Null ) ;
9292
93- ClickVisiblePanel < GroupPanel > ( 0 ) ;
93+ ClickVisiblePanel < PanelGroup > ( 0 ) ;
9494 AddUntilStep ( "carousel item is visible" , ( ) => GetSelectedPanel ( ) ? . Item ? . IsVisible , ( ) => Is . True ) ;
9595 }
9696
@@ -120,18 +120,18 @@ public void TestGroupSelectionOnHeaderMouse()
120120 SelectNextGroup ( ) ;
121121 WaitForGroupSelection ( 0 , 0 ) ;
122122
123- AddAssert ( "keyboard selected panel is beatmap" , GetKeyboardSelectedPanel , Is . TypeOf < BeatmapPanel > ) ;
124- AddAssert ( "selected panel is beatmap" , GetSelectedPanel , Is . TypeOf < BeatmapPanel > ) ;
123+ AddAssert ( "keyboard selected panel is beatmap" , GetKeyboardSelectedPanel , Is . TypeOf < PanelBeatmap > ) ;
124+ AddAssert ( "selected panel is beatmap" , GetSelectedPanel , Is . TypeOf < PanelBeatmap > ) ;
125125
126- ClickVisiblePanel < GroupPanel > ( 0 ) ;
127- AddAssert ( "keyboard selected panel is group" , GetKeyboardSelectedPanel , Is . TypeOf < GroupPanel > ) ;
126+ ClickVisiblePanel < PanelGroup > ( 0 ) ;
127+ AddAssert ( "keyboard selected panel is group" , GetKeyboardSelectedPanel , Is . TypeOf < PanelGroup > ) ;
128128 AddAssert ( "keyboard selected panel is contracted" , ( ) => GetKeyboardSelectedPanel ( ) ? . Expanded . Value , ( ) => Is . False ) ;
129129
130- ClickVisiblePanel < GroupPanel > ( 0 ) ;
131- AddAssert ( "keyboard selected panel is group" , GetKeyboardSelectedPanel , Is . TypeOf < GroupPanel > ) ;
130+ ClickVisiblePanel < PanelGroup > ( 0 ) ;
131+ AddAssert ( "keyboard selected panel is group" , GetKeyboardSelectedPanel , Is . TypeOf < PanelGroup > ) ;
132132 AddAssert ( "keyboard selected panel is expanded" , ( ) => GetKeyboardSelectedPanel ( ) ? . Expanded . Value , ( ) => Is . True ) ;
133133
134- AddAssert ( "selected panel is still beatmap" , GetSelectedPanel , Is . TypeOf < BeatmapPanel > ) ;
134+ AddAssert ( "selected panel is still beatmap" , GetSelectedPanel , Is . TypeOf < PanelBeatmap > ) ;
135135 }
136136
137137 [ Test ]
@@ -146,7 +146,7 @@ public void TestKeyboardSelection()
146146 // open first group
147147 Select ( ) ;
148148 CheckNoSelection ( ) ;
149- AddUntilStep ( "some beatmaps visible" , ( ) => Carousel . ChildrenOfType < BeatmapPanel > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . GreaterThan ( 0 ) ) ;
149+ AddUntilStep ( "some beatmaps visible" , ( ) => Carousel . ChildrenOfType < PanelBeatmap > ( ) . Count ( p => p . Alpha > 0 ) , ( ) => Is . GreaterThan ( 0 ) ) ;
150150
151151 SelectNextPanel ( ) ;
152152 Select ( ) ;
@@ -171,23 +171,23 @@ public void TestKeyboardSelection()
171171 [ Test ]
172172 public void TestInputHandlingWithinGaps ( )
173173 {
174- AddAssert ( "no beatmaps visible" , ( ) => ! GetVisiblePanels < BeatmapPanel > ( ) . Any ( ) ) ;
174+ AddAssert ( "no beatmaps visible" , ( ) => ! GetVisiblePanels < PanelBeatmap > ( ) . Any ( ) ) ;
175175
176176 // Clicks just above the first group panel should not actuate any action.
177- ClickVisiblePanelWithOffset < GroupPanel > ( 0 , new Vector2 ( 0 , - ( GroupPanel . HEIGHT / 2 + 1 ) ) ) ;
177+ ClickVisiblePanelWithOffset < PanelGroup > ( 0 , new Vector2 ( 0 , - ( PanelGroup . HEIGHT / 2 + 1 ) ) ) ;
178178
179- AddAssert ( "no beatmaps visible" , ( ) => ! GetVisiblePanels < BeatmapPanel > ( ) . Any ( ) ) ;
179+ AddAssert ( "no beatmaps visible" , ( ) => ! GetVisiblePanels < PanelBeatmap > ( ) . Any ( ) ) ;
180180
181- ClickVisiblePanelWithOffset < GroupPanel > ( 0 , new Vector2 ( 0 , - ( GroupPanel . HEIGHT / 2 ) ) ) ;
181+ ClickVisiblePanelWithOffset < PanelGroup > ( 0 , new Vector2 ( 0 , - ( PanelGroup . HEIGHT / 2 ) ) ) ;
182182
183- AddUntilStep ( "wait for beatmaps visible" , ( ) => GetVisiblePanels < BeatmapPanel > ( ) . Any ( ) ) ;
183+ AddUntilStep ( "wait for beatmaps visible" , ( ) => GetVisiblePanels < PanelBeatmap > ( ) . Any ( ) ) ;
184184 CheckNoSelection ( ) ;
185185
186186 // Beatmap panels expand their selection area to cover holes from spacing.
187- ClickVisiblePanelWithOffset < BeatmapPanel > ( 0 , new Vector2 ( 0 , - ( CarouselItem . DEFAULT_HEIGHT / 2 + 1 ) ) ) ;
187+ ClickVisiblePanelWithOffset < PanelBeatmap > ( 0 , new Vector2 ( 0 , - ( CarouselItem . DEFAULT_HEIGHT / 2 + 1 ) ) ) ;
188188 WaitForGroupSelection ( 0 , 0 ) ;
189189
190- ClickVisiblePanelWithOffset < BeatmapPanel > ( 1 , new Vector2 ( 0 , ( CarouselItem . DEFAULT_HEIGHT / 2 + 1 ) ) ) ;
190+ ClickVisiblePanelWithOffset < PanelBeatmap > ( 1 , new Vector2 ( 0 , ( CarouselItem . DEFAULT_HEIGHT / 2 + 1 ) ) ) ;
191191 WaitForGroupSelection ( 0 , 1 ) ;
192192 }
193193 }
0 commit comments