From e686c4d7f84121afb368f74638b0139c41599feb Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Tue, 20 Jun 2017 13:00:34 +0200 Subject: [PATCH] Remove `invalidateBlockDecorationDimensions` from tests This is now automatically called by the mutation observer. --- spec/text-editor-component-spec.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/text-editor-component-spec.js b/spec/text-editor-component-spec.js index b44838538..862018cf8 100644 --- a/spec/text-editor-component-spec.js +++ b/spec/text-editor-component-spec.js @@ -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.