@@ -23,6 +23,8 @@ func TestDecodeSettings(t *testing.T) {
2323 DefaultSpeed : 10 ,
2424 BrowserBin : nil ,
2525 SkipPauseBeforeQuit : false ,
26+ Width : nil ,
27+ Height : nil ,
2628 },
2729 false ,
2830 },
@@ -35,6 +37,8 @@ func TestDecodeSettings(t *testing.T) {
3537 DefaultSpeed : 10 ,
3638 BrowserBin : nil ,
3739 SkipPauseBeforeQuit : false ,
40+ Width : nil ,
41+ Height : nil ,
3842 },
3943 false ,
4044 },
@@ -49,6 +53,8 @@ func TestDecodeSettings(t *testing.T) {
4953 DefaultSpeed : 10 ,
5054 BrowserBin : nil ,
5155 SkipPauseBeforeQuit : false ,
56+ Width : nil ,
57+ Height : nil ,
5258 },
5359 false ,
5460 },
@@ -63,6 +69,8 @@ func TestDecodeSettings(t *testing.T) {
6369 DefaultSpeed : 10 ,
6470 BrowserBin : nil ,
6571 SkipPauseBeforeQuit : false ,
72+ Width : nil ,
73+ Height : nil ,
6674 },
6775 false ,
6876 },
@@ -77,6 +85,8 @@ func TestDecodeSettings(t *testing.T) {
7785 DefaultSpeed : 10 ,
7886 BrowserBin : nil ,
7987 SkipPauseBeforeQuit : false ,
88+ Width : nil ,
89+ Height : nil ,
8090 },
8191 false ,
8292 },
@@ -91,6 +101,8 @@ func TestDecodeSettings(t *testing.T) {
91101 DefaultSpeed : 200 ,
92102 BrowserBin : nil ,
93103 SkipPauseBeforeQuit : false ,
104+ Width : nil ,
105+ Height : nil ,
94106 },
95107 false ,
96108 },
@@ -105,6 +117,8 @@ func TestDecodeSettings(t *testing.T) {
105117 DefaultSpeed : 10 ,
106118 BrowserBin : util .String ("BROWSER_BIN" ),
107119 SkipPauseBeforeQuit : false ,
120+ Width : nil ,
121+ Height : nil ,
108122 },
109123 false ,
110124 },
@@ -119,6 +133,40 @@ func TestDecodeSettings(t *testing.T) {
119133 DefaultSpeed : 10 ,
120134 BrowserBin : nil ,
121135 SkipPauseBeforeQuit : true ,
136+ Width : nil ,
137+ Height : nil ,
138+ },
139+ false ,
140+ },
141+ {
142+ map [string ]interface {}{
143+ "width" : 2000 ,
144+ },
145+ & Settings {
146+ LoginCommand : []string {"bash" , "--login" },
147+ FontSize : 22 ,
148+ FontFamily : nil ,
149+ DefaultSpeed : 10 ,
150+ BrowserBin : nil ,
151+ SkipPauseBeforeQuit : false ,
152+ Width : util .Int (2000 ),
153+ Height : nil ,
154+ },
155+ false ,
156+ },
157+ {
158+ map [string ]interface {}{
159+ "height" : 1000 ,
160+ },
161+ & Settings {
162+ LoginCommand : []string {"bash" , "--login" },
163+ FontSize : 22 ,
164+ FontFamily : nil ,
165+ DefaultSpeed : 10 ,
166+ BrowserBin : nil ,
167+ SkipPauseBeforeQuit : false ,
168+ Width : nil ,
169+ Height : util .Int (1000 ),
122170 },
123171 false ,
124172 },
@@ -130,6 +178,8 @@ func TestDecodeSettings(t *testing.T) {
130178 "defaultSpeed" : 200 ,
131179 "browserBin" : "BROWSER_BIN" ,
132180 "skipPauseBeforeQuit" : true ,
181+ "width" : 2000 ,
182+ "height" : 1000 ,
133183 },
134184 & Settings {
135185 LoginCommand : []string {"zsh" , "--login" },
@@ -138,6 +188,8 @@ func TestDecodeSettings(t *testing.T) {
138188 DefaultSpeed : 200 ,
139189 BrowserBin : util .String ("BROWSER_BIN" ),
140190 SkipPauseBeforeQuit : true ,
191+ Width : util .Int (2000 ),
192+ Height : util .Int (1000 ),
141193 },
142194 false ,
143195 },
@@ -156,6 +208,8 @@ func TestDecodeSettings(t *testing.T) {
156208 "defaultSpeed" : 200 ,
157209 "browserBin" : "BROWSER_BIN" ,
158210 "skipPauseBeforeQuit" : true ,
211+ "width" : 2000 ,
212+ "height" : 1000 ,
159213 "a" : "A" ,
160214 },
161215 nil ,
0 commit comments