Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ab8f434

Browse files
committed
Revert back file accidentally included in 84cef31
1 parent 84cef31 commit ab8f434

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/results-view-spec.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ describe 'ResultsView', ->
272272

273273
expect(resultsView.find(".path-details").length).toBe 3
274274

275-
fdescribe "core:page-up and core:page-down", ->
275+
describe "core:page-up and core:page-down", ->
276276
beforeEach ->
277277
workspaceElement.style.height = '300px'
278278
projectFindView.findEditor.setText(' ')
@@ -316,14 +316,13 @@ describe 'ResultsView', ->
316316

317317
expect(resultsView.find("li:last")).toHaveClass 'selected'
318318

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", ->
320320
atom.commands.dispatch resultsView.element, 'core:move-to-bottom'
321321

322322
itemHeight = resultsView.find('.selected').outerHeight()
323323
pageHeight = Math.round(resultsView.innerHeight() / itemHeight) * itemHeight
324324
initialScrollTop = resultsView.scrollTop()
325325
itemsPerPage = Math.floor(pageHeight / itemHeight)
326-
console.log("#{itemHeight} #{pageHeight} #{initialScrollTop} #{itemsPerPage} #{resultsView.innerHeight()}")
327326

328327
initiallySelectedIndex = Math.floor(initialScrollTop / itemHeight) + itemsPerPage
329328
expect(resultsView.find("li:eq(#{initiallySelectedIndex})")).toHaveClass 'selected'

0 commit comments

Comments
 (0)