From 1b24bd9dce26deb198d8db834194115318e94605 Mon Sep 17 00:00:00 2001 From: MaxSorokin Date: Tue, 5 Dec 2023 16:41:19 +0300 Subject: [PATCH] Bug is invalid --- js/docx/paragraph/cross_reference/add_bookmark_cross_ref.js | 2 +- .../paragraph/cross-reference/check_cross_reference_spec.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/docx/paragraph/cross_reference/add_bookmark_cross_ref.js b/js/docx/paragraph/cross_reference/add_bookmark_cross_ref.js index b4e93743..c97eb31c 100644 --- a/js/docx/paragraph/cross_reference/add_bookmark_cross_ref.js +++ b/js/docx/paragraph/cross_reference/add_bookmark_cross_ref.js @@ -2,7 +2,7 @@ builder.CreateFile("docx"); let oDocument = Api.GetDocument(); let oParagraph = oDocument.GetElement(0); oParagraph.AddText("Paragraph with bookmark"); -let oRange = oDocument.GetRange(0, 8); +let oRange = oDocument.GetRange(0, 9); oRange.AddBookmark("Bookmark"); let oParagraph1 = Api.CreateParagraph(); diff --git a/spec/docx/paragraph/cross-reference/check_cross_reference_spec.rb b/spec/docx/paragraph/cross-reference/check_cross_reference_spec.rb index 795759c4..fd1b75bf 100644 --- a/spec/docx/paragraph/cross-reference/check_cross_reference_spec.rb +++ b/spec/docx/paragraph/cross-reference/check_cross_reference_spec.rb @@ -34,7 +34,6 @@ it 'Cross-reference to bookmarks' do docx = builder.build_and_parse('js/docx/paragraph/cross_reference/add_bookmark_cross_ref.js') - skip('Bug 65298') expect(docx.elements[1].nonempty_runs[1].text).to eq('Paragraph') expect(docx.elements[1].runs[2].instruction_text.value).to eq(' REF Bookmark \\h') # TODO: bug 'https://bugzilla.onlyoffice.com/show_bug.cgi?id=58898'