From 4289ac335d05afd72eb8665f9d835382fe3e22e8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 5 Jul 2021 22:00:21 -0400 Subject: tests: Check more layout properties Allow setting more layout properties in test-layout, and check their values after setting them. Also print out directions and cursor positions. Update existing tests, and add more. --- tests/layouts/valid-8.expected | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/layouts/valid-8.expected (limited to 'tests/layouts/valid-8.expected') diff --git a/tests/layouts/valid-8.expected b/tests/layouts/valid-8.expected new file mode 100644 index 00000000..185ba373 --- /dev/null +++ b/tests/layouts/valid-8.expected @@ -0,0 +1,34 @@ +Hello שלום Γειά σας + +--- parameters + +wrapped: 0 +ellipsized: 0 +lines: 2 + +--- attributes + +range 0 2147483647 + +--- directions + +0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 + +--- cursor positions + +0(0) 1(0) 2(0) 3(0) 4(0) 5(0) 6(0) 12(0) 10(0) 8(0) 14(0) 15(0) 17(0) 19(0) 21(0) 23(0) 24(0) 26(0) 28(0) 28(1) 31(0) + +--- lines + +i=1, index=0, paragraph-start=1, dir=ltr 'Hello שלום Γειά σας +' +i=2, index=31, paragraph-start=1, dir=ltr '' + +--- runs + +i=1, index=0, chars=6, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'Hello ' +i=2, index=12, chars=4, level=1, gravity=south, flags=0, font=OMITTED, script=hebrew, language=he, 'שלום' +i=3, index=14, chars=1, level=0, gravity=south, flags=0, font=OMITTED, script=hebrew, language=he, ' ' +i=4, index=15, chars=8, level=0, gravity=south, flags=0, font=OMITTED, script=greek, language=el, 'Γειά σας' +i=5, index=30, no run, line end +i=6, index=31, no run, line end -- cgit v1.2.1