mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 23:59:22 +03:00
Fix specs
This commit is contained in:
parent
af1bdaf901
commit
832b4ae4d8
@ -1734,11 +1734,11 @@ describe "TextEditorComponent", ->
|
||||
nextAnimationFrame()
|
||||
expect(verticalScrollbarNode.scrollTop).toBe 10
|
||||
|
||||
it "parses negative scrollSensitivity values as positive", ->
|
||||
it "parses negative scrollSensitivity values at the minimum", ->
|
||||
atom.config.set('editor.scrollSensitivity', -50)
|
||||
componentNode.dispatchEvent(new WheelEvent('mousewheel', wheelDeltaX: 0, wheelDeltaY: -10))
|
||||
nextAnimationFrame()
|
||||
expect(verticalScrollbarNode.scrollTop).toBe 5
|
||||
expect(verticalScrollbarNode.scrollTop).toBe 1
|
||||
|
||||
describe "when the mousewheel event's target is a line", ->
|
||||
it "keeps the line on the DOM if it is scrolled off-screen", ->
|
||||
|
@ -113,7 +113,7 @@ class EditorView extends View
|
||||
scrollSensitivity:
|
||||
type: 'integer'
|
||||
default: 40
|
||||
minimum: 1
|
||||
minimum: 10
|
||||
maximum: 200
|
||||
useHardwareAcceleration:
|
||||
type: 'boolean'
|
||||
@ -128,16 +128,16 @@ class EditorView extends View
|
||||
type: 'object'
|
||||
properties:
|
||||
eol:
|
||||
type: 'string'
|
||||
type: ['string', 'boolean']
|
||||
default: '\u00ac'
|
||||
space:
|
||||
type: 'string'
|
||||
type: ['string', 'boolean']
|
||||
default: '\u00b7'
|
||||
tab:
|
||||
type: 'string'
|
||||
type: ['string', 'boolean']
|
||||
default: '\u00bb'
|
||||
cr:
|
||||
type: 'string'
|
||||
type: ['string', 'boolean']
|
||||
default: '\u00a4'
|
||||
>>>>>>> Editor config uses a schema:src/editor-view.coffee
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user