Skip to content

Commit

Permalink
Set autoHeight: true explicitly in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Scandurra committed May 5, 2017
1 parent 7235148 commit 46daf64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/text-editor-large-file-construction.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function ({test}) {

let t0 = window.performance.now()
const buffer = new TextBuffer({text})
const editor = new TextEditor({buffer, largeFileMode: true})
const editor = new TextEditor({buffer, autoHeight: false, largeFileMode: true})
atom.workspace.getActivePane().activateItem(editor)
let t1 = window.performance.now()

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/text-editor-long-lines.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default async function ({test}) {

let t0 = window.performance.now()
const buffer = new TextBuffer({text})
const editor = new TextEditor({buffer, largeFileMode: true})
const editor = new TextEditor({buffer, autoHeight: false, largeFileMode: true})
editor.setGrammar(atom.grammars.grammarForScopeName('source.js'))
atom.workspace.getActivePane().activateItem(editor)
let t1 = window.performance.now()
Expand Down

0 comments on commit 46daf64

Please sign in to comment.