uiacceltk/hitchcock/tsrc/alfperfapp/data/alfperfapp.rss
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Resource definitions for project alfperfapp.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 NAME    TPRF
       
    20 
       
    21 #include <eikon.rh>
       
    22 #include <avkon.rh>
       
    23 #include <appinfo.rh>
       
    24 #include <avkon.rsg>
       
    25 #include <data_caging_paths_strings.hrh>
       
    26 #include <bldvariant.hrh>
       
    27 #include "alfperfapp.hrh"
       
    28 #include "alfperfapp.rh"
       
    29 
       
    30 RESOURCE RSS_SIGNATURE { }
       
    31 RESOURCE TBUF { buf=""; }
       
    32 
       
    33 RESOURCE EIK_APP_INFO
       
    34     {
       
    35     status_pane = r_alfperfapp_status_pane;
       
    36     }
       
    37 
       
    38 RESOURCE LOCALISABLE_APP_INFO r_alfperfapp_localisable_app_info
       
    39     {
       
    40     short_caption = "AlfPerfApp";
       
    41     caption_and_icon =
       
    42         CAPTION_AND_ICON_INFO
       
    43             {
       
    44             caption = "AlfPerfApp";
       
    45             };
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 //    r_alfperfapp_status_pane
       
    51 //
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 RESOURCE STATUS_PANE_APP_MODEL r_alfperfapp_status_pane
       
    55     {
       
    56     panes =
       
    57         {
       
    58         SPANE_PANE
       
    59             {
       
    60             id = EEikStatusPaneUidTitle;
       
    61             type = EAknCtTitlePane;
       
    62             resource = r_alfperfapp_default_title_pane;
       
    63             }
       
    64         };
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 //    r_alfperfapp_default_title_pane
       
    70 //
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 RESOURCE TITLE_PANE r_alfperfapp_default_title_pane
       
    74     {
       
    75     txt = "AlfPerfApp";
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 //    r_alfperfapp_test_case_selection_view
       
    81 //
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 RESOURCE AVKON_VIEW r_alfperfapp_test_case_selection_view
       
    85     {
       
    86     menubar = r_alfperfapp_test_case_selection_menubar;
       
    87     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
       
    88     }
       
    89 
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 //     r_alfperfapp_test_case_selection_menubar
       
    94 //
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 RESOURCE MENU_BAR r_alfperfapp_test_case_selection_menubar
       
    98     {
       
    99     titles =
       
   100         {
       
   101         MENU_TITLE { menu_pane = r_alfperfapp_test_case_selection_menupane; }
       
   102         };
       
   103     }
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 //    r_alfperfapp_test_case_selection_menupane
       
   108 //
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 RESOURCE MENU_PANE r_alfperfapp_test_case_selection_menupane
       
   112     {
       
   113     items =
       
   114         {
       
   115         MENU_ITEM
       
   116             {
       
   117             command = EAlfPerfAppCmdRunAll;
       
   118             txt = "Run All";
       
   119             },
       
   120         MENU_ITEM
       
   121             {
       
   122             command = EAlfPerfAppCmdRunAllContinuously;
       
   123             txt = "Run Continuously";
       
   124             },
       
   125         MENU_ITEM
       
   126             {
       
   127             command = EAlfPerfAppCmdClearFiles;
       
   128             txt = "Clear Files";
       
   129             },
       
   130         MENU_ITEM
       
   131             {
       
   132             command = EAknCmdExit;
       
   133             txt = "Exit";
       
   134             }
       
   135         };
       
   136     }
       
   137 
       
   138 RESOURCE MENU_PANE r_alfperfapp_test_case_selection_suite_menupane
       
   139     {
       
   140     items =
       
   141         {
       
   142         // Holder for menu items
       
   143         };
       
   144     }
       
   145     
       
   146 // -----------------------------------------------------------------------------
       
   147 //
       
   148 //    r_alfperfapp_test_case_execution_view
       
   149 //
       
   150 // -----------------------------------------------------------------------------
       
   151 //
       
   152 RESOURCE AVKON_VIEW r_alfperfapp_test_case_execution_view
       
   153     {
       
   154     cba = R_AVKON_SOFTKEYS_EMPTY;
       
   155     }
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 //
       
   159 //    r_alfperfapp_test_case_execution_view_continuous_run
       
   160 //
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 RESOURCE AVKON_VIEW r_alfperfapp_test_case_execution_view_continuous_run
       
   164     {
       
   165     cba = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   166     }
       
   167 
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 //
       
   172 //    r_alfperfapp_testset
       
   173 //    Defines all test suites and cases.
       
   174 //
       
   175 //    Customizations:
       
   176 //      Test Suite
       
   177 //        flags = EAlfPerfAppTestSuiteFlagExcludeFromRunAll; <- excludes from Run All and Run Continuously       
       
   178 //
       
   179 //      Test Case
       
   180 //        flags = EAlfPerfAppTestCaseFlagRequiresInActiveFlag; <- Disables this case if Inactive flag is
       
   181 //                                                                not supported.
       
   182 //        sequenceLength = X; <- Marks this as a sequence case (if X > 0) --> Repetive runs get
       
   183 //                               their testCounter increased if the cases are run after each other.
       
   184 //                               X denotes the number of times this case is added in the sequence                     
       
   185 // -----------------------------------------------------------------------------
       
   186 //
       
   187 RESOURCE ALFPERFAPP_TESTSET r_alfperfapp_testset
       
   188     {
       
   189     folders =
       
   190         {
       
   191         //
       
   192         // Image tests - implementation in CAlfPerfAppImageTestCase
       
   193         //
       
   194         ALFPERFAPP_TESTSUITE
       
   195             {
       
   196             name = "Image";
       
   197             
       
   198             items = 
       
   199                 {
       
   200 #ifdef __NVG
       
   201                 ALFPERFAPP_TESTCASE
       
   202                     {
       
   203                     id = EAlfPerfAppImageManyNvgCSImages;
       
   204                     name = "Nvg CS-images";
       
   205                     },
       
   206                 ALFPERFAPP_TESTCASE
       
   207                     {
       
   208                     id = EAlfPerfAppImageManyNvgTLVImages;
       
   209                     name = "Nvg TLV-images";
       
   210                     },
       
   211                 ALFPERFAPP_TESTCASE
       
   212                     {
       
   213                     id = EAlfPerfAppImageBasicMoveScaleNvgCS;
       
   214                     name = "NvgCS: Basic Move & Scale";
       
   215                     },
       
   216                 ALFPERFAPP_TESTCASE
       
   217                     {
       
   218                     id = EAlfPerfAppImageBasicMoveScaleNvgTLV;
       
   219                     name = "NvgTLV: Basic Move & Scale";
       
   220                     },
       
   221 #endif
       
   222                 ALFPERFAPP_TESTCASE
       
   223                     {
       
   224                     id = EAlfPerfAppImageBasicMoveScale;
       
   225                     name = "Basic Move & Scale";
       
   226                     },
       
   227                 ALFPERFAPP_TESTCASE
       
   228                     {
       
   229                     id = EAlfPerfAppImageManyImages;
       
   230                     name = "Mif images";
       
   231                     },
       
   232                 ALFPERFAPP_TESTCASE
       
   233                     {
       
   234                     id = EAlfPerfAppImageManyGifImages;
       
   235                     name = "Gif images ";
       
   236                     },
       
   237                 ALFPERFAPP_TESTCASE
       
   238                     {
       
   239                     id = EAlfPerfAppImageManyPngImages;
       
   240                     name = "Png images";
       
   241                     },
       
   242                 ALFPERFAPP_TESTCASE
       
   243                     {
       
   244                     id = EAlfPerfAppImageManySvgImages;
       
   245                     name = "Svgt images";
       
   246                     },
       
   247                 ALFPERFAPP_TESTCASE
       
   248                     {
       
   249                     id = EAlfPerfAppImageManyImagesWithPointerEvent;
       
   250                     name = "Pointer events to visuals";
       
   251                     },
       
   252                 ALFPERFAPP_TESTCASE
       
   253                     {
       
   254                     id = EAlfPerfAppImageManyImagesWithAutoSize;
       
   255                     name = "Auto sized textures";
       
   256                     },
       
   257                 ALFPERFAPP_TESTCASE
       
   258                     {
       
   259                     id = EAlfPerfAppImageAnimate1of2;
       
   260                     name = "Animate 1/2 screen";
       
   261                     },
       
   262                 ALFPERFAPP_TESTCASE
       
   263                     {
       
   264                     id = EAlfPerfAppImageAnimate1of4;
       
   265                     name = "Animate 1/4 screen";
       
   266                     },
       
   267                 ALFPERFAPP_TESTCASE
       
   268                     {
       
   269                     id = EAlfPerfAppImageAnimate1of8;
       
   270                     name = "Animate 1/8 screen";
       
   271                     }
       
   272                 };
       
   273             },
       
   274             
       
   275         //
       
   276         // Cover tests - implementation in CAlfPerfAppCoverTestCase
       
   277         //
       
   278         ALFPERFAPP_TESTSUITE
       
   279             {
       
   280             name = "Cover";
       
   281             
       
   282             items = 
       
   283                 {
       
   284                 ALFPERFAPP_TESTCASE
       
   285                     {
       
   286                     id = EAlfPerfAppCover;
       
   287                     name = "Scroll & Scale";
       
   288                     },
       
   289                 ALFPERFAPP_TESTCASE
       
   290                     {
       
   291                     id = EAlfPerfAppCoverLandscape;
       
   292                     name = "Scroll & Scale in Landscape";
       
   293                     },
       
   294                 ALFPERFAPP_TESTCASE
       
   295                     {
       
   296                     id = EAlfPerfAppCoverRotate;
       
   297                     name = "Rotate";
       
   298                     },
       
   299                 ALFPERFAPP_TESTCASE
       
   300                     {
       
   301                     id = EAlfPerfAppCoverClipZoomLargeImage;
       
   302                     name = "Clip-Zoom-Pan large image";
       
   303                     },
       
   304                 ALFPERFAPP_TESTCASE
       
   305                     {
       
   306                     id = EAlfPerfAppCoverClipZoomBigImage;
       
   307                     name = "Clip-Zoom-Pan big image";
       
   308                     },
       
   309                 ALFPERFAPP_TESTCASE
       
   310                     {
       
   311                     id = EAlfPerfAppCoverClipZoomVga;
       
   312                     name = "Clip-Zoom-Pan Vga image";
       
   313                     },
       
   314                 ALFPERFAPP_TESTCASE
       
   315                     {
       
   316                     id = EAlfPerfAppCoverClipZoomAutoSize;
       
   317                     name = "Clip-Zoom-Pan Autosize";
       
   318                     }
       
   319                 };
       
   320             },
       
   321 
       
   322         //
       
   323         // Gallery tests - implementation in CAlfPerfAppGalleryTestCase
       
   324         //
       
   325         ALFPERFAPP_TESTSUITE
       
   326             {
       
   327             name = "Gallery";
       
   328               
       
   329             items = 
       
   330                 {
       
   331                     ALFPERFAPP_TESTCASE
       
   332                         {
       
   333                         id = EAlfPerfAppGallery;
       
   334                         name = "Gallery Test";
       
   335                         },
       
   336                     ALFPERFAPP_TESTCASE
       
   337                         {
       
   338                         id = EAlfPerfAppGalleryLandscape;
       
   339                         name = "Gallery Test Landscape";
       
   340                         }
       
   341                 };
       
   342             },
       
   343             
       
   344         //
       
   345         // AppSuite tests - implementation in CAlfPerfAppSuiteTestCase
       
   346         //
       
   347         ALFPERFAPP_TESTSUITE
       
   348             {
       
   349             name = "AppSuite";
       
   350             
       
   351             items = 
       
   352                 {
       
   353                 ALFPERFAPP_TESTCASE
       
   354                     {
       
   355                     id = EAlfPerfAppSuiteCaseScrollContinuousPortrait;
       
   356                     name = "Scroll continuous - portrait";
       
   357                     },
       
   358                 ALFPERFAPP_TESTCASE
       
   359                     {
       
   360                     id = EAlfPerfAppSuiteCaseScrollIncrementalPortrait;
       
   361                     name = "Scroll incremental - portrait";
       
   362                     },
       
   363                 ALFPERFAPP_TESTCASE
       
   364                     {
       
   365                     id = EAlfPerfAppSuiteCaseScrollContinuousLandscape;
       
   366                     name = "Scroll continuous - landscape";
       
   367                     },
       
   368                 ALFPERFAPP_TESTCASE
       
   369                     {
       
   370                     id = EAlfPerfAppSuiteCaseScrollIncrementalLandscape;
       
   371                     name = "Scroll incremental - landscape";
       
   372                     }                      
       
   373                 };
       
   374             },                
       
   375                 
       
   376         //
       
   377         // Text tests - implementation in CAlfPerfAppTextTestCase
       
   378         //
       
   379         ALFPERFAPP_TESTSUITE
       
   380             {
       
   381             name = "Text";
       
   382             
       
   383             items = 
       
   384                 {
       
   385                 ALFPERFAPP_TESTCASE
       
   386                     {
       
   387                     id = EAlfPerfAppTextBasicMoveScale;
       
   388                     name = "Basic Move & Scale";
       
   389                     },
       
   390                 ALFPERFAPP_TESTCASE
       
   391                     {
       
   392                     id = EAlfPerfAppTextManyTexts;
       
   393                     name = "Many texts";
       
   394                     },
       
   395                 ALFPERFAPP_TESTCASE
       
   396                     {
       
   397                     id = EAlfPerfAppTextManyTextsWithPointerEvent;
       
   398                     name = "Pointer events to visuals";
       
   399                     },
       
   400                 ALFPERFAPP_TESTCASE
       
   401                     {
       
   402                     id = EAlfPerfAppTextManyTextsWithAutoSize;
       
   403                     name = "Auto sized";
       
   404                     },
       
   405                 ALFPERFAPP_TESTCASE
       
   406                     {
       
   407                     id = EAlfPerfAppTextInactiveVisuals;
       
   408                     name = "Inactive visuals";
       
   409                     flags = EAlfPerfAppTestCaseFlagRequiresInActiveFlag;
       
   410                     }
       
   411                 };
       
   412             },
       
   413 
       
   414 
       
   415         //
       
   416         // Framework tests - implementation in CAlfPerfAppFrameworkTestCase
       
   417         //
       
   418         ALFPERFAPP_TESTSUITE
       
   419             {
       
   420             name = "Framework";
       
   421             flags = EAlfPerfAppTestSuiteFlagExcludeFromRunAll;
       
   422 
       
   423             items = 
       
   424                 {
       
   425                 ALFPERFAPP_TESTCASE
       
   426                     {
       
   427                     id = EAlfPerfAppFrameworkEmpty;
       
   428                     name = "Empty";
       
   429                     },
       
   430                 ALFPERFAPP_TESTCASE
       
   431                     {
       
   432                     id = EAlfPerfAppFrameworkCreateFail;
       
   433                     name = "Create Fail";
       
   434                     },
       
   435                 ALFPERFAPP_TESTCASE
       
   436                     {
       
   437                     id = EAlfPerfAppFrameworkSetupFailSynch;
       
   438                     name = "Setup fails - synch";
       
   439                     },
       
   440                 ALFPERFAPP_TESTCASE
       
   441                     {
       
   442                     id = EAlfPerfAppFrameworkSetupFailAsynch;
       
   443                     name = "Setup fails - asynch";
       
   444                     },
       
   445                 ALFPERFAPP_TESTCASE
       
   446                     {
       
   447                     id = EAlfPerfAppFrameworkExecuteFailSynch;
       
   448                     name = "Execute fails - synch";
       
   449                     },
       
   450                 ALFPERFAPP_TESTCASE
       
   451                     {
       
   452                     id = EAlfPerfAppFrameworkExecuteFailAsynch;
       
   453                     name = "Execute fails - asynch";
       
   454                     }
       
   455                 };            
       
   456             },            
       
   457         //
       
   458         // Layout tests - implementation in CAlfPerfAppLayoutTestCase
       
   459         //
       
   460         ALFPERFAPP_TESTSUITE
       
   461             {
       
   462             name = "Layout";
       
   463             
       
   464             items = 
       
   465                 {
       
   466                 ALFPERFAPP_TESTCASE
       
   467                     {
       
   468                     id = EAlfPerfAppLayoutGrid;
       
   469                     name = "Grid";
       
   470                     },
       
   471                 ALFPERFAPP_TESTCASE
       
   472                     {
       
   473                     id = EAlfPerfAppLayoutDeck;
       
   474                     name = "Deck";
       
   475                     },
       
   476                 ALFPERFAPP_TESTCASE
       
   477                     {
       
   478                     id = EAlfPerfAppLayoutAnchor;
       
   479                     name = "Anchor";
       
   480                     },
       
   481                 ALFPERFAPP_TESTCASE
       
   482                     {
       
   483                     id = EAlfPerfAppLayoutCurvePath;
       
   484                     name = "CurvePath";
       
   485                     },
       
   486                 ALFPERFAPP_TESTCASE
       
   487                     {
       
   488                     id = EAlfPerfAppLayoutFlow;
       
   489                     name = "Flow";
       
   490                     },
       
   491                 ALFPERFAPP_TESTCASE
       
   492                     {
       
   493                     id = EAlfPerfAppLayoutViewport;
       
   494                     name = "Viewport";
       
   495                     }
       
   496                     
       
   497                 };
       
   498             },
       
   499                 //
       
   500                 // Avkon tests - implementation in CAlfPerfAppAvkonTestCase
       
   501                 //
       
   502                 ALFPERFAPP_TESTSUITE
       
   503                     {
       
   504                     name = "Avkon";
       
   505                     
       
   506                     items = 
       
   507                         {
       
   508                         ALFPERFAPP_TESTCASE
       
   509                             {
       
   510                             id = EAlfPerfAppAvkonBasicWinGc;
       
   511                             name = "WinGC primitives";
       
   512                             }
       
   513                         };
       
   514                     },
       
   515         ///
       
   516         /// Sequence test cases.
       
   517         /// --------------------
       
   518         /// If adding new cases, increase size of KAlfPerfAppReserveExecution
       
   519         /// to fit all cases from this suite. (In case of RunAllFromSuite)
       
   520         ///
       
   521         ALFPERFAPP_TESTSUITE
       
   522                     {
       
   523                     name = "Sequence";
       
   524                     flags = EAlfPerfAppTestSuiteFlagExcludeFromRunAll;
       
   525                     
       
   526                     items = 
       
   527                         {
       
   528                         ALFPERFAPP_TESTCASE
       
   529                             {
       
   530                             id = EAlfPerfAppImageManyImages;
       
   531                             name = "Image Sequence";
       
   532                             sequenceLength = 49;
       
   533                             },
       
   534                         ALFPERFAPP_TESTCASE
       
   535                             {
       
   536                             id = EAlfPerfAppTextManyTexts;
       
   537                             name = "Text Sequence";
       
   538                             sequenceLength = 49;
       
   539                             }                            
       
   540                         };
       
   541                     }
       
   542                 };
       
   543     }
       
   544     
       
   545 // -----------------------------------------------------------------------------
       
   546 //
       
   547 //    r_alfperfapp_text_runall
       
   548 //
       
   549 // -----------------------------------------------------------------------------
       
   550 //
       
   551 RESOURCE TBUF r_alfperfapp_text_runall
       
   552     {
       
   553     buf = "Run All";
       
   554     }
       
   555