diff options
author | Jelle Hulter <jellehulter@gmail.com> | 2022-01-20 10:59:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 17:59:15 +0800 |
commit | bbd30787d3d33fe66896c7e758e6922be459e252 (patch) | |
tree | 7e6aedf8363d23bd6e33bebe3c0b56495ae691bf /services | |
parent | 7427b81fecabeb1c67bbb9326a8bcaf9585dc28a (diff) | |
download | gitea-bbd30787d3d33fe66896c7e758e6922be459e252.tar.gz gitea-bbd30787d3d33fe66896c7e758e6922be459e252.zip |
Updated Chroma to v0.10.0 (#18270)
Diffstat (limited to 'services')
-rw-r--r-- | services/gitdiff/gitdiff_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/gitdiff/gitdiff_test.go b/services/gitdiff/gitdiff_test.go index 2f8b8491cd..57cbb74b22 100644 --- a/services/gitdiff/gitdiff_test.go +++ b/services/gitdiff/gitdiff_test.go @@ -716,7 +716,8 @@ func TestDiffToHTML_14231(t *testing.T) { diffRecord := diffMatchPatch.DiffMain(highlight.Code("main.v", "", " run()\n"), highlight.Code("main.v", "", " run(db)\n"), true) diffRecord = diffMatchPatch.DiffCleanupEfficiency(diffRecord) - expected := ` <span class="n">run</span><span class="added-code"><span class="o">(</span><span class="n">db</span></span><span class="o">)</span>` + expected := `<span class="line"><span class="cl"> <span class="n">run</span><span class="added-code"><span class="o">(</span><span class="n">db</span></span><span class="o">)</span> +</span></span>` output := diffToHTML("main.v", diffRecord, DiffLineAdd) assertEqual(t, expected, output.Content) |