From cbc3fd21b79fbb819c1c341fc825701c04a0b473 Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 22 Jan 2020 01:08:18 +0800 Subject: Resolve #455, init delete picture from spreadsheet support --- chart_test.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'chart_test.go') diff --git a/chart_test.go b/chart_test.go index d8d36d8..98f3555 100644 --- a/chart_test.go +++ b/chart_test.go @@ -217,12 +217,6 @@ func TestDeleteChart(t *testing.T) { assert.EqualError(t, f.DeleteChart("SheetN", "A1"), "sheet SheetN is not exist") // Test delete chart with invalid coordinates. assert.EqualError(t, f.DeleteChart("Sheet1", ""), `cannot convert cell "" to coordinates: invalid cell name ""`) - // Test delete chart with unsupport charset. - f, err = OpenFile(filepath.Join("test", "Book1.xlsx")) - assert.NoError(t, err) - delete(f.Sheet, "xl/drawings/drawing1.xml") - f.XLSX["xl/drawings/drawing1.xml"] = MacintoshCyrillicCharset - assert.EqualError(t, f.DeleteChart("Sheet1", "A1"), "xml decode error: XML syntax error on line 1: invalid UTF-8") // Test delete chart on no chart worksheet. assert.NoError(t, NewFile().DeleteChart("Sheet1", "A1")) } -- cgit v1.2.1