41 |
|
|
42 |
@Test |
@Test |
43 |
public void testDialog() throws Throwable { |
public void testDialog() throws Throwable { |
44 |
|
|
45 |
|
if (!TestingUtil.INTERACTIVE) |
46 |
|
// Test needed here because following GUI creation would crash |
47 |
|
// without X11 DISPLAY |
48 |
|
return; |
49 |
|
|
50 |
ArrayList<String> langs = new ArrayList<String>(); |
ArrayList<String> langs = new ArrayList<String>(); |
51 |
langs.add("fr"); |
langs.add("fr"); |
52 |
langs.add("tr"); |
langs.add("tr"); |
|
|
|
53 |
TestingUtil.testGui(new SwitchLanguageDialog(null, langs, false), 10); |
TestingUtil.testGui(new SwitchLanguageDialog(null, langs, false), 10); |
54 |
} |
} |
55 |
|
|
56 |
@Test |
@Test |
57 |
public void testDialogDoesntAppearIf0OrOneLangOnly() throws Throwable { |
public void testDialogDoesntAppearIf0OrOneLangOnly() throws Throwable { |
58 |
|
if (!TestingUtil.INTERACTIVE) |
59 |
|
// Test needed here because following GUI creation would crash |
60 |
|
// without X11 DISPLAY |
61 |
|
return; |
62 |
|
|
63 |
ArrayList<String> langs = new ArrayList<String>(); |
ArrayList<String> langs = new ArrayList<String>(); |
64 |
langs.add("fr"); |
langs.add("fr"); |
65 |
|
|