From 3256c8b5039302ca15ae55cbdde73cc1a2a6934f Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 18 Dec 2015 10:06:04 +0100 Subject: [PATCH] :green_heart: Adjust TextEditorComponent specs for block decorations --- spec/text-editor-component-spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/text-editor-component-spec.js b/spec/text-editor-component-spec.js index 86f924116..488c6df3a 100644 --- a/spec/text-editor-component-spec.js +++ b/spec/text-editor-component-spec.js @@ -1664,7 +1664,7 @@ describe('TextEditorComponent', function () { }) it("renders visible and yet-to-be-measured block decorations, inserting them between the appropriate lines and refreshing them as needed", async function () { - wrapperNode.style.height = 9 * lineHeightInPixels + 'px' + wrapperNode.style.height = 13 * lineHeightInPixels + 'px' component.measureDimensions() await nextViewUpdatePromise() @@ -1706,7 +1706,7 @@ describe('TextEditorComponent', function () { await nextAnimationFramePromise() - expect(component.getDomNode().querySelectorAll(".line").length).toBe(7) + expect(component.getDomNode().querySelectorAll(".line").length).toBe(9) expect(component.tileNodesForLines()[0].style.height).toBe(TILE_SIZE * editor.getLineHeightInPixels() + "px") expect(component.tileNodesForLines()[0].style.webkitTransform).toBe("translate3d(0px, 0px, 0px)") @@ -1731,7 +1731,7 @@ describe('TextEditorComponent', function () { await nextAnimationFramePromise() // causes the DOM to update and to retrieve new styles await nextAnimationFramePromise() // applies the changes - expect(component.getDomNode().querySelectorAll(".line").length).toBe(7) + expect(component.getDomNode().querySelectorAll(".line").length).toBe(9) expect(component.tileNodesForLines()[0].style.height).toBe(TILE_SIZE * editor.getLineHeightInPixels() + "px") expect(component.tileNodesForLines()[0].style.webkitTransform).toBe("translate3d(0px, 0px, 0px)") @@ -1753,7 +1753,7 @@ describe('TextEditorComponent', function () { await nextAnimationFramePromise() await nextAnimationFramePromise() - expect(component.getDomNode().querySelectorAll(".line").length).toBe(7) + expect(component.getDomNode().querySelectorAll(".line").length).toBe(9) expect(component.tileNodesForLines()[0].style.height).toBe(TILE_SIZE * editor.getLineHeightInPixels() + "px") expect(component.tileNodesForLines()[0].style.webkitTransform).toBe("translate3d(0px, 0px, 0px)")