@@ -1176,14 +1176,20 @@ def setUp(self):
1176
1176
def test_addonsconfig_form (self ):
1177
1177
data = {
1178
1178
"enabled" : True ,
1179
+ "options_root_selector" : "main" ,
1179
1180
"analytics_enabled" : False ,
1180
1181
"doc_diff_enabled" : False ,
1182
+ "filetreediff_enabled" : True ,
1183
+ # Empty lines, lines with trailing spaces or lines full of spaces are ignored
1184
+ "filetreediff_ignored_files" : "user/index.html\n \n \n \n changelog.html \n " ,
1181
1185
"flyout_enabled" : True ,
1182
1186
"flyout_sorting" : ADDONS_FLYOUT_SORTING_CALVER ,
1183
1187
"flyout_sorting_latest_stable_at_beginning" : True ,
1184
1188
"flyout_sorting_custom_pattern" : None ,
1189
+ "flyout_position" : "bottom-left" ,
1185
1190
"hotkeys_enabled" : False ,
1186
1191
"search_enabled" : False ,
1192
+ "linkpreviews_enabled" : True ,
1187
1193
"notifications_enabled" : True ,
1188
1194
"notifications_show_on_latest" : True ,
1189
1195
"notifications_show_on_non_stable" : True ,
@@ -1194,8 +1200,14 @@ def test_addonsconfig_form(self):
1194
1200
form .save ()
1195
1201
1196
1202
self .assertEqual (self .project .addons .enabled , True )
1203
+ self .assertEqual (self .project .addons .options_root_selector , "main" )
1197
1204
self .assertEqual (self .project .addons .analytics_enabled , False )
1198
1205
self .assertEqual (self .project .addons .doc_diff_enabled , False )
1206
+ self .assertEqual (self .project .addons .filetreediff_enabled , True )
1207
+ self .assertEqual (
1208
+ self .project .addons .filetreediff_ignored_files ,
1209
+ ["user/index.html" , "changelog.html" ],
1210
+ )
1199
1211
self .assertEqual (self .project .addons .notifications_enabled , True )
1200
1212
self .assertEqual (self .project .addons .notifications_show_on_latest , True )
1201
1213
self .assertEqual (self .project .addons .notifications_show_on_non_stable , True )
@@ -1210,8 +1222,11 @@ def test_addonsconfig_form(self):
1210
1222
True ,
1211
1223
)
1212
1224
self .assertEqual (self .project .addons .flyout_sorting_custom_pattern , None )
1225
+ self .assertEqual (self .project .addons .flyout_position , "bottom-left" )
1213
1226
self .assertEqual (self .project .addons .hotkeys_enabled , False )
1214
1227
self .assertEqual (self .project .addons .search_enabled , False )
1228
+ self .assertEqual (self .project .addons .linkpreviews_enabled , True )
1229
+ self .assertEqual (self .project .addons .notifications_enabled , True )
1215
1230
self .assertEqual (self .project .addons .notifications_show_on_latest , True )
1216
1231
self .assertEqual (self .project .addons .notifications_show_on_non_stable , True )
1217
1232
self .assertEqual (self .project .addons .notifications_show_on_external , True )
0 commit comments