mirror of
https://github.com/atom/atom.git
synced 2026-02-11 15:14:59 -05:00
Serialize root view state to a string of JSON when storing it on the window upon refresh
This avoid situations where arrays in the window state pointed to a different constructor than the current context's Array constructor.
This commit is contained in:
@@ -53,7 +53,7 @@ describe "Window", ->
|
||||
expect(atom.rootViewStates[$windowNumber]).toBeUndefined()
|
||||
expectedState = window.rootView.serialize()
|
||||
$(window).trigger 'beforeunload'
|
||||
expect(atom.rootViewStates[$windowNumber]).toEqual expectedState
|
||||
expect(atom.rootViewStates[$windowNumber]).toEqual JSON.stringify(expectedState)
|
||||
|
||||
it "unsubscribes from all buffers", ->
|
||||
editor1 = rootView.activeEditor()
|
||||
|
||||
Reference in New Issue
Block a user