mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't allow float or int Editor's to have NaN as a value
This commit is contained in:
committed by
Corey Johnson & Kevin Sawicki
parent
cedea831f7
commit
ecad6bc2a8
@@ -72,3 +72,9 @@ describe "ConfigPanel", ->
|
||||
expect(config.get('foo.int')).toBe 3
|
||||
expect(config.get('foo.float')).toBe 3.3
|
||||
expect(config.get('foo.string')).toBe 'All limitations are self imposed.'
|
||||
|
||||
panel.intEditor.setText('')
|
||||
panel.floatEditor.setText('ha ha')
|
||||
window.advanceClock(10000) # wait for contents-modified to be triggered
|
||||
expect(config.get('foo.int')).toBe 0
|
||||
expect(config.get('foo.float')).toBe 0
|
||||
|
||||
Reference in New Issue
Block a user