mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
A buffer with no path sets document.title to 'untitled'
This commit is contained in:
@@ -366,3 +366,8 @@ describe "RootView", ->
|
||||
|
||||
editor1.buffer.setPath("should-not-be-title.txt")
|
||||
expect(document.title).toBe "second.txt"
|
||||
|
||||
it "sets title to 'untitled' when buffer's path is null", ->
|
||||
editor = rootView.activeEditor()
|
||||
editor.setBuffer(new Buffer())
|
||||
expect(document.title).toBe "untitled"
|
||||
Reference in New Issue
Block a user