@@ -40,20 +40,23 @@ public void AlwaysFillsVisibleCapacity_Sync()
4040 // Wait until items have been rendered.
4141 Browser . True ( ( ) => ( initialItemCount = GetItemCount ( ) ) > 0 ) ;
4242 Browser . Equal ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
43+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
4344
4445 // Scroll halfway.
4546 Browser . ExecuteJavaScript ( "const container = document.getElementById('sync-container');container.scrollTop = container.scrollHeight * 0.5;" ) ;
4647
4748 // Validate that we get the same item count after scrolling halfway.
4849 Browser . Equal ( initialItemCount , GetItemCount ) ;
4950 Browser . NotEqual ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
51+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
5052
5153 // Scroll to the bottom.
5254 Browser . ExecuteJavaScript ( "const container = document.getElementById('sync-container');container.scrollTop = container.scrollHeight;" ) ;
5355
5456 // Validate that we get the same item count after scrolling to the bottom.
5557 Browser . Equal ( initialItemCount , GetItemCount ) ;
5658 Browser . NotEqual ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
59+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
5760
5861 int GetItemCount ( ) => Browser . FindElements ( By . Id ( "sync-item" ) ) . Count ;
5962 }
@@ -200,6 +203,7 @@ public void CanUseViewportAsContainer()
200203
201204 // Validate that the top spacer has a height of zero.
202205 Browser . Equal ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
206+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
203207
204208 Browser . ExecuteJavaScript ( "window.scrollTo(0, document.body.scrollHeight);" ) ;
205209
@@ -209,6 +213,7 @@ public void CanUseViewportAsContainer()
209213
210214 // Validate that the top spacer has expanded.
211215 Browser . NotEqual ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
216+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
212217 }
213218
214219 [ Fact ]
@@ -221,6 +226,7 @@ public async Task ToleratesIncorrectItemSize()
221226 // Wait until items have been rendered.
222227 Browser . True ( ( ) => GetItemCount ( ) > 0 ) ;
223228 Browser . Equal ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
229+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
224230
225231 // Scroll slowly, in increments of 50px at a time. At one point this would trigger a bug
226232 // due to the incorrect item size, whereby it would not realise it's necessary to show more
@@ -234,6 +240,7 @@ public async Task ToleratesIncorrectItemSize()
234240
235241 // Validate that the top spacer did change
236242 Browser . NotEqual ( expectedInitialSpacerStyle , ( ) => topSpacer . GetDomAttribute ( "style" ) ) ;
243+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
237244
238245 int GetItemCount ( ) => Browser . FindElements ( By . ClassName ( "incorrect-size-item" ) ) . Count ;
239246 }
@@ -250,6 +257,8 @@ public void CanRenderHtmlTable()
250257 Assert . Equal ( "tr" , topSpacer . TagName . ToLowerInvariant ( ) ) ;
251258 Assert . Equal ( "tr" , bottomSpacer . TagName . ToLowerInvariant ( ) ) ;
252259 Assert . Contains ( expectedInitialSpacerStyle , topSpacer . GetDomAttribute ( "style" ) ) ;
260+ Assert . Contains ( "true" , topSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
261+ Assert . Contains ( "true" , bottomSpacer . GetDomAttribute ( "aria-hidden" ) ) ;
253262
254263 // Check scrolling document element works
255264 Browser . DoesNotExist ( By . Id ( "row-999" ) ) ;
0 commit comments