This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ describe 'ResultsView', ->
272
272
273
273
expect (resultsView .find (" .path-details" ).length ).toBe 3
274
274
275
- fdescribe " core:page-up and core:page-down" , ->
275
+ describe " core:page-up and core:page-down" , ->
276
276
beforeEach ->
277
277
workspaceElement .style .height = ' 300px'
278
278
projectFindView .findEditor .setText (' ' )
@@ -316,14 +316,13 @@ describe 'ResultsView', ->
316
316
317
317
expect (resultsView .find (" li:last" )).toHaveClass ' selected'
318
318
319
- fit " selects the first result on the next page when core:page-up is triggered" , ->
319
+ it " selects the first result on the next page when core:page-up is triggered" , ->
320
320
atom .commands .dispatch resultsView .element , ' core:move-to-bottom'
321
321
322
322
itemHeight = resultsView .find (' .selected' ).outerHeight ()
323
323
pageHeight = Math .round (resultsView .innerHeight () / itemHeight) * itemHeight
324
324
initialScrollTop = resultsView .scrollTop ()
325
325
itemsPerPage = Math .floor (pageHeight / itemHeight)
326
- console .log (" #{ itemHeight} #{ pageHeight} #{ initialScrollTop} #{ itemsPerPage} #{ resultsView .innerHeight ()} " )
327
326
328
327
initiallySelectedIndex = Math .floor (initialScrollTop / itemHeight) + itemsPerPage
329
328
expect (resultsView .find (" li:eq(#{ initiallySelectedIndex} )" )).toHaveClass ' selected'
You can’t perform that action at this time.
0 commit comments