fix cursor_position_GB8a.test failure

This commit is contained in:
wu-leilei 2022-01-11 15:44:49 +08:00
parent c0e5cb5022
commit 300739ad65
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From 0d25533d33e149d3570ffe61fb1d7128e7ea79cc Mon Sep 17 00:00:00 2001
From: wu-leilei <wu18740459704@163.com>
Date: Fri, 7 Jan 2022 15:56:06 +0800
Subject: [PATCH] Update text expectation
---
tests/cursor_position_GB8a.test | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/cursor_position_GB8a.test b/tests/cursor_position_GB8a.test
index bef963e..d161691 100644
--- a/tests/cursor_position_GB8a.test
+++ b/tests/cursor_position_GB8a.test
@@ -32,9 +32,9 @@ glyph [0] x_offset: 0 y_offset: 0 x_advance: 748 font: Amiri
glyph [0] x_offset: 0 y_offset: 0 x_advance: 748 font: Amiri
glyph [0] x_offset: 0 y_offset: 0 x_advance: 748 font: Amiri
-UTF-32 clusters: 00 01 02 03
-UTF-8 clusters: 00 04 08 12
+UTF-32 clusters: 00 00 02 02
+UTF-8 clusters: 00 00 08 08
-The position is 2992 at index 12
+The position is 2244 at index 8
The start-index is 4 at position 1000
--
2.23.0

View File

@ -1,10 +1,11 @@
Name: libraqm
Version: 0.7.0
Release: 2
Release: 3
License: MIT
Summary: Complex Textlayout Library
URL: https://github.com/HOST-Oman/libraqm
Source: https://github.com/HOST-Oman/libraqm/releases/download/v%{version}/raqm-%{version}.tar.gz
Patch0001: Update-text-expectation.patch
BuildRequires: python3 freetype-devel harfbuzz-devel fribidi-devel gtk-doc gcc
@ -60,6 +61,9 @@ rm -f %{buildroot}%{_libdir}/*.{la,a}
%{_datadir}/gtk-doc/html/raqm
%changelog
* Tue Jan 11 2022 wulei <wulei80@huawei.com> - 0.7.0-3
- Fix cursor_position_GB8a.test failure
* Tue Jun 08 2021 wulei <wulei80@huawei.com> - 0.7.0-2
- fixes failed: error: no acceptable C compiler found in $PATH