mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add benchmark for the gutter api fns
This commit is contained in:
@@ -123,6 +123,19 @@ describe "editor.", ->
|
||||
div = document.createElement('div')
|
||||
div.innerHTML = html
|
||||
|
||||
describe "gutter-api.", ->
|
||||
describe "getLineNumberElementsForClass.", ->
|
||||
beforeEach ->
|
||||
editor.gutter.addClassToLine(20, 'omgwow')
|
||||
editor.gutter.addClassToLine(40, 'omgwow')
|
||||
|
||||
benchmark "DOM", 20000, ->
|
||||
editor.gutter.getLineNumberElementsForClass('omgwow')
|
||||
|
||||
describe "getLineNumberElement.", ->
|
||||
benchmark "DOM", 20000, ->
|
||||
editor.gutter.getLineNumberElementDOM(12)
|
||||
|
||||
describe "line-htmlification.", ->
|
||||
div = null
|
||||
html = null
|
||||
|
||||
Reference in New Issue
Block a user