From 51cfc262c69b46fdc01228f9f89f4020c5d6b8dd Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Fri, 1 Feb 2019 13:12:35 -0500 Subject: [PATCH] Pass an `order` property to test fixture block decorations --- spec/text-editor-component-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/text-editor-component-spec.js b/spec/text-editor-component-spec.js index 2db53db53..1be78aeef 100644 --- a/spec/text-editor-component-spec.js +++ b/spec/text-editor-component-spec.js @@ -2638,7 +2638,7 @@ describe('TextEditorComponent', () => { expect(editor.getCursorScreenPosition()).toEqual([0, 0]) }) - function createBlockDecorationAtScreenRow(editor, screenRow, {height, margin, marginTop, marginBottom, position, invalidate}) { + function createBlockDecorationAtScreenRow(editor, screenRow, {height, margin, marginTop, marginBottom, position, order, invalidate}) { const marker = editor.markScreenPosition([screenRow, 0], {invalidate: invalidate || 'never'}) const item = document.createElement('div') item.style.height = height + 'px' @@ -2646,7 +2646,7 @@ describe('TextEditorComponent', () => { if (marginTop != null) item.style.marginTop = marginTop + 'px' if (marginBottom != null) item.style.marginBottom = marginBottom + 'px' item.style.width = 30 + 'px' - const decoration = editor.decorateMarker(marker, {type: 'block', item, position}) + const decoration = editor.decorateMarker(marker, {type: 'block', item, position, order}) return {item, decoration, marker} }