summaryrefslogtreecommitdiff
path: root/sheet_test.go
diff options
context:
space:
mode:
authorHarrison <harrison3000@users.noreply.github.com>2022-10-10 13:05:02 -0300
committerGitHub <noreply@github.com>2022-10-11 00:05:02 +0800
commitc02346bafc6e098406f32ee0a183d45f3038c619 (patch)
tree7c04d06c12b9850b1940cf4a476036b5df974850 /sheet_test.go
parent2f5704b114d033e81725f18459f9293a9adfee1e (diff)
This closes #1047, stream writer support set panes (#1123)
- New exported error `ErrStreamSetPanes` has been added
Diffstat (limited to 'sheet_test.go')
-rw-r--r--sheet_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sheet_test.go b/sheet_test.go
index 74ca02c..6e87de9 100644
--- a/sheet_test.go
+++ b/sheet_test.go
@@ -34,7 +34,7 @@ func TestSetPane(t *testing.T) {
assert.NoError(t, f.SetPanes("Panes 3", `{"freeze":false,"split":true,"x_split":3270,"y_split":1800,"top_left_cell":"N57","active_pane":"bottomLeft","panes":[{"sqref":"I36","active_cell":"I36"},{"sqref":"G33","active_cell":"G33","pane":"topRight"},{"sqref":"J60","active_cell":"J60","pane":"bottomLeft"},{"sqref":"O60","active_cell":"O60","pane":"bottomRight"}]}`))
f.NewSheet("Panes 4")
assert.NoError(t, f.SetPanes("Panes 4", `{"freeze":true,"split":false,"x_split":0,"y_split":9,"top_left_cell":"A34","active_pane":"bottomLeft","panes":[{"sqref":"A11:XFD11","active_cell":"A11","pane":"bottomLeft"}]}`))
- assert.NoError(t, f.SetPanes("Panes 4", ""))
+ assert.EqualError(t, f.SetPanes("Panes 4", ""), "unexpected end of JSON input")
assert.EqualError(t, f.SetPanes("SheetN", ""), "sheet SheetN does not exist")
assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetPane.xlsx")))
// Test add pane on empty sheet views worksheet