javauis/runtimeui_qt/tsrc.s60/javasrc/com/nokia/mj/impl/rt/ui/qt/RuntimeUiQtTests.java
changeset 47 f40128debb5d
parent 21 2a9601315dfc
child 78 71ad690e91f5
equal deleted inserted replaced
35:85266cc22c7f 47:f40128debb5d
    80         doTest(new RuntimeUiQt());
    80         doTest(new RuntimeUiQt());
    81     }
    81     }
    82 
    82 
    83     private void doTest(RuntimeUi runtimeUi)
    83     private void doTest(RuntimeUi runtimeUi)
    84     {
    84     {
    85         System.out.println("+doTest()");
       
    86         // error message with details -> make sure both are available to the user
    85         // error message with details -> make sure both are available to the user
    87         ExceptionBase exc = new ExceptionBase(
    86         ExceptionBase exc = new ExceptionBase(
    88             new ShortErrorMessage(),
    87             new ShortErrorMessage(),
    89             ShortErrorMessage.MSG_WITH_DETAILS_ID,
    88             ShortErrorMessage.MSG_WITH_DETAILS_ID,
    90             null, /* no params for short msg */
    89             null, /* no params for short msg */
   101             ShortErrorMessage.MSG_WITHOUT_DETAILS_ID,
   100             ShortErrorMessage.MSG_WITHOUT_DETAILS_ID,
   102             null, /* no params for short msg */
   101             null, /* no params for short msg */
   103             null,
   102             null,
   104             0,
   103             0,
   105             null /* no params for detailed msg */);
   104             null /* no params for detailed msg */);
   106         System.out.println("3");
       
   107 
       
   108         runtimeUi.error("MyApplication", exc);
       
   109 
       
   110         // Test no crash happen.
       
   111         runtimeUi.error("NullException", null);
       
   112 
       
   113 
   105 
   114         boolean answerAvailable = false;
   106         boolean answerAvailable = false;
   115 
   107 
   116         // Test confirm
   108         // Test confirm
   117         ConfirmData confirmData = new ConfirmData("Confirm dialog. Select Allow", new String[] {"answerOpt1", "answerOpt2", "answerOption3"}, 1);
   109         ConfirmData confirmData = new ConfirmData("Confirm dialog. Select Allow", new String[] {"answerOpt1", "answerOpt2", "answerOption3"}, 1);
   128 
   120 
   129         ConfirmData nullConf = null;
   121         ConfirmData nullConf = null;
   130         runtimeUi.confirm("Null Application", nullConf);
   122         runtimeUi.confirm("Null Application", nullConf);
   131 
   123 
   132         runtimeUi.destroy();
   124         runtimeUi.destroy();
   133         System.out.println("-doTest()");
       
   134     }
   125     }
   135 }
   126 }