mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Remove invalidateBlockDecorationDimensions from tests
This is now automatically called by the mutation observer.
This commit is contained in:
committed by
Antonio Scandurra
parent
2a45e42697
commit
e686c4d7f8
@@ -1941,8 +1941,6 @@ describe('TextEditorComponent', () => {
|
||||
item3.style.margin = '10px'
|
||||
item2.style.height = '33px'
|
||||
item2.style.margin = '0px'
|
||||
component.invalidateBlockDecorationDimensions(decoration2)
|
||||
component.invalidateBlockDecorationDimensions(decoration3)
|
||||
await component.getNextUpdatePromise()
|
||||
expect(component.getRenderedStartRow()).toBe(0)
|
||||
expect(component.getRenderedEndRow()).toBe(9)
|
||||
@@ -1973,7 +1971,6 @@ describe('TextEditorComponent', () => {
|
||||
item3.style.wordWrap = 'break-word'
|
||||
const contentWidthInCharacters = Math.floor(component.getScrollContainerClientWidth() / component.getBaseCharacterWidth())
|
||||
item3.textContent = 'x'.repeat(contentWidthInCharacters * 2)
|
||||
component.invalidateBlockDecorationDimensions(decoration3)
|
||||
await component.getNextUpdatePromise()
|
||||
|
||||
// make the editor wider, so that the decoration doesn't wrap anymore.
|
||||
|
||||
Reference in New Issue
Block a user