From cab3414caf342881ca57d2fc2573b0081fc5957f Mon Sep 17 00:00:00 2001 From: Benoit KUGLER Date: Mon, 18 Nov 2024 18:22:07 +0100 Subject: [PATCH] add test resource --- html/document/draw_test.go | 25 +++++++++++++++++-------- resources_test/weasyprint.otb_fixed | Bin 0 -> 1525 bytes 2 files changed, 17 insertions(+), 8 deletions(-) create mode 100755 resources_test/weasyprint.otb_fixed diff --git a/html/document/draw_test.go b/html/document/draw_test.go index 4746d7d..2bf7cbc 100644 --- a/html/document/draw_test.go +++ b/html/document/draw_test.go @@ -1,7 +1,6 @@ package document import ( - "fmt" "io" "os" "testing" @@ -190,15 +189,25 @@ func TestLeaderCrash(t *testing.T) { } func TestDebug(t *testing.T) { - // baseUrl, _ := utils.PathToURL("../../resources_test/") - - input := fmt.Sprintf(` + input := ` - `, "inset") + AaA` + doc, err := tree.NewHTML(utils.InputString(input), baseUrl, nil, "") if err != nil { t.Fatal(err) diff --git a/resources_test/weasyprint.otb_fixed b/resources_test/weasyprint.otb_fixed new file mode 100755 index 0000000000000000000000000000000000000000..3ac426b5e3fad92527638c6a9ce5b8abf35f7a82 GIT binary patch literal 1525 zcmc&!J!n%=6#njgFR}L5iXupnOLY+8)z?=mQXFb*Dzt(DC1Mx*+QcT<7MQ{>v5ga;*tAkTlaciwoidsRDKEIoHlcuHA(VLu{?>pz*bI-XyfdJ5oJFuXV ziIHoq?aK#fc|kdzOkBR$+0n8={DJcL%GJ|eI^m}QahrT{y5N`a$XX_UPZ`T){mi$P z<@9pFx(H+7DZq1Y5yq0~0XwIDZbjqAg< zZRUxF;!KTQ=FypkS)87qqE+)+F6w=Tw-M_RH@rKd4SuA-fp*x|ig*aNC-2KedLBet zd_uoqc8S=26CZWZAgNo)4BmzzW7fhrCgd7^(^;=t$LY%1rjZ`w8=*zpdsz8N>NvIT z#AyfQ#D5Ostw}~pzGLc)c0|(nE&b1JyMqLIbUveo!>y4 zwW7=U`0Df5NU#0`coIAh@)om4oDrQ*6iv_0z2XhvAvKAK;hiu;?|5_vhwCPE;$TtBgHdKI(yVnEGt8mjp^qWWx6qW1t_qi?&yRG7E>!)cIr@l+({e`b}U*`M?>f
abc