/[schmitzm]/branches/2.3.KECK/src_junit/skrueger/i8n/SwitchLanguageDialogTest.java
ViewVC logotype

Diff of /branches/2.3.KECK/src_junit/skrueger/i8n/SwitchLanguageDialogTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/src_junit/skrueger/i8n/SwitchLanguageDialogTest.java revision 1098 by alfonx, Sun Oct 10 22:52:16 2010 UTC branches/2.3-KECK/src_junit/skrueger/i8n/SwitchLanguageDialogTest.java revision 1102 by alfonx, Thu Oct 14 09:44:10 2010 UTC
# Line 41  public class SwitchLanguageDialogTest ex Line 41  public class SwitchLanguageDialogTest ex
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    

Legend:
Removed from v.1098  
changed lines
  Added in v.1102

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26