@@ -28,7 +28,7 @@ public void setUp() {
28
28
29
29
// Set of allowed locales for the test
30
30
private static final Set <String > ALLOWED_LOCALES = new HashSet <>(Arrays .asList (
31
- "bg" , "ca" , "cs" , "da" , "de" , "el" , "en_GB " , "es" , "es_AR" , "et" , "fi" , "fr" , "he" , "hu" , "it" , "ja" , "ko" ,
31
+ "bg" , "ca" , "cs" , "da" , "de" , "el" , "en " , "es" , "es_AR" , "et" , "fi" , "fr" , "he" , "hu" , "it" , "ja" , "ko" ,
32
32
"lt" , "lv" , "nb_NO" , "nl" , "pl" , "pt_BR" , "pt_PT" , "ro" , "ru" , "sk" , "sl" , "sr" , "sv_SE" , "tr" , "uk" ,
33
33
"zh_CN" , "zh_TW" ));
34
34
@@ -38,24 +38,24 @@ public void testDoFillSystemLocaleItems() {
38
38
ListBoxModel model = plugin .doFillSystemLocaleItems ();
39
39
40
40
// Expected size of the ListBoxModel
41
- int expectedSize = ALLOWED_LOCALES .size () + 1 ; // +1 for the "Use Browser Locale" option
41
+ int expectedSize = ALLOWED_LOCALES .size () + 1 ; // +1 for the "Use Default Locale" option
42
42
43
43
// Verify the returned ListBoxModel size
44
44
assertEquals ("The returned ListBoxModel size is not as expected" , expectedSize , model .size ());
45
45
46
- // Verify that the first option is "Use Browser Locale"
46
+ // Verify that the first option is "Use Default Locale"
47
47
String expectedFirstOption = String .format (
48
- "Use Browser Locale - %s (%s)" ,
48
+ "Use Default Locale - %s (%s)" ,
49
49
Locale .getDefault ().getDisplayName (), Locale .getDefault ().toString ());
50
- assertEquals ("The first option should be 'Use Browser Locale'" , expectedFirstOption , model .get (0 ).name );
50
+ assertEquals ("The first option should be 'Use Default Locale'" , expectedFirstOption , model .get (0 ).name );
51
51
52
52
// Verify that the allowed locales are correctly added to the ListBoxModel, excluding the first option
53
53
for (String localeStr : ALLOWED_LOCALES ) {
54
54
Locale locale = Locale .forLanguageTag (localeStr .replace ('_' , '-' ));
55
55
String expectedOption = String .format ("%s - %s" , locale .getDisplayName (), locale .toString ());
56
56
57
57
boolean found = false ;
58
- for (int i = 1 ; i < model .size (); i ++) { // Start from 1 to skip the "Use Browser Locale" option
58
+ for (int i = 1 ; i < model .size (); i ++) { // Start from 1 to skip the "Use Default Locale" option
59
59
if (model .get (i ).name .equals (expectedOption )) {
60
60
found = true ;
61
61
break ;
0 commit comments