widgetmanager/tsrc/wmunittest/conf/ui_wmunittest.cfg
changeset 1 5315654608de
parent 0 f72a12da539e
child 2 08c6ee43b396
equal deleted inserted replaced
0:f72a12da539e 1:5315654608de
     1 //-------------------------------------------------------------------------------
       
     2 // constants
       
     3 //-------------------------------------------------------------------------------
       
     4 //
       
     5 [Define]
       
     6 
       
     7 TRUE 1
       
     8 FALSE 0
       
     9 
       
    10 OK 0
       
    11 FAIL -1
       
    12 
       
    13 MAX_WIDGET_AMOUNT 1000 // non-functional requirement
       
    14 
       
    15 EUnrecognized 0
       
    16 EUidIcon 1
       
    17 ESvgIcon 2
       
    18 ESkinIcon 3
       
    19 EMifIcon 4
       
    20 ESkinAndMifIcon 5 
       
    21 EImageIcon 6
       
    22 
       
    23 [Enddefine]
       
    24 
       
    25 //-------------------------------------------------------------------------------
       
    26 // Test cases for the plugin
       
    27 //-------------------------------------------------------------------------------
       
    28 //
       
    29 
       
    30 
       
    31 // Tests WmPlugin construction
       
    32 [Test]
       
    33 title WmPlugin create/delete
       
    34 create wmunittest test
       
    35 test HeapSet
       
    36 test PluginCreate
       
    37 pause 500
       
    38 test PluginDelete
       
    39 test HeapCheck
       
    40 delete test
       
    41 [Endtest] 
       
    42 
       
    43 // Heap usage logging
       
    44 [Test]
       
    45 title WmPlugin memcon test
       
    46 create wmunittest test
       
    47 test HeapSet
       
    48 test LogHeap "before wm"
       
    49 test PluginCreate
       
    50 test LogHeap "wm Active"
       
    51 //
       
    52 test SetMass 10
       
    53 test PluginActivate
       
    54 pause 500
       
    55 test LogHeap "10 widgets"
       
    56 //
       
    57 test SetMass 20
       
    58 test PluginWidgetsChanged
       
    59 pause 250
       
    60 test LogHeap "20 widgets"
       
    61 //
       
    62 test SetMass 30
       
    63 test PluginWidgetsChanged
       
    64 pause 250
       
    65 test LogHeap "30 widgets"
       
    66 //
       
    67 test SetMass 40
       
    68 test PluginWidgetsChanged
       
    69 pause 250
       
    70 test LogHeap "40 widgets"
       
    71 //
       
    72 test SetMass 50
       
    73 test PluginWidgetsChanged
       
    74 pause 250
       
    75 test LogHeap "50 widgets"
       
    76 //
       
    77 test SetMass 60
       
    78 test PluginWidgetsChanged
       
    79 pause 250
       
    80 test LogHeap "60 widgets"
       
    81 //
       
    82 test SetMass 70
       
    83 test PluginWidgetsChanged
       
    84 pause 250
       
    85 test LogHeap "70 widgets"
       
    86 //
       
    87 test SetMass 80
       
    88 test PluginWidgetsChanged
       
    89 pause 250
       
    90 test LogHeap "80 widgets"
       
    91 //
       
    92 test SetMass 90
       
    93 test PluginWidgetsChanged
       
    94 pause 250
       
    95 test LogHeap "90 widgets"
       
    96 //
       
    97 test SetMass 100
       
    98 test PluginWidgetsChanged
       
    99 pause 250
       
   100 test LogHeap "100 widgets"
       
   101 //
       
   102 test SetMass 200
       
   103 test PluginWidgetsChanged
       
   104 pause 250
       
   105 test LogHeap "200 widgets"
       
   106 //
       
   107 test SetMass 300
       
   108 test PluginWidgetsChanged
       
   109 pause 250
       
   110 test LogHeap "300 widgets"
       
   111 //
       
   112 test SetMass 400
       
   113 test PluginWidgetsChanged
       
   114 pause 250
       
   115 test LogHeap "400 widgets"
       
   116 //
       
   117 test SetMass 500
       
   118 test PluginWidgetsChanged
       
   119 pause 250
       
   120 test LogHeap "500 widgets"
       
   121 //
       
   122 test PluginDeactivate
       
   123 pause 250
       
   124 test LogHeap "wm deactive"
       
   125 //
       
   126 test PluginDeactivate
       
   127 pause 500
       
   128 test PluginDelete
       
   129 test HeapCheck
       
   130 test LogHeap "after wm"
       
   131 delete test
       
   132 [Endtest] 
       
   133 
       
   134 // Tests WmPlugin Activate method
       
   135 [Test]
       
   136 title WmPlugin activate/deactivate
       
   137 create wmunittest test
       
   138 test HeapSet
       
   139 test PluginCreate
       
   140 test SetMass 10
       
   141 test PluginActivate
       
   142 pause 500
       
   143 test PluginDeactivate
       
   144 pause 500
       
   145 test PluginDelete
       
   146 test HeapCheck
       
   147 delete test
       
   148 [Endtest]
       
   149 
       
   150 // Tests WmPlugin NotifyWidgetListChanged with no change at all
       
   151 [Test]
       
   152 title WmPlugin notify nochange
       
   153 create wmunittest test
       
   154 test HeapSet
       
   155 test PluginCreate
       
   156 test SetMass 10
       
   157 test PluginActivate
       
   158 pause 500
       
   159 test SetMass 10
       
   160 test PluginWidgetsChanged
       
   161 pause 500
       
   162 test PluginDeactivate
       
   163 pause 500
       
   164 test PluginDelete
       
   165 test HeapCheck
       
   166 delete test
       
   167 [Endtest]
       
   168 
       
   169 // Tests WmPlugin NotifyWidgetListChanged 10->11 widgets
       
   170 [Test]
       
   171 title WmPlugin notify 10->11
       
   172 create wmunittest test
       
   173 test HeapSet
       
   174 test PluginCreate
       
   175 test SetMass 10
       
   176 test PluginActivate
       
   177 pause 500
       
   178 test SetMass 11
       
   179 test PluginWidgetsChanged
       
   180 pause 500
       
   181 test PluginDeactivate
       
   182 pause 500
       
   183 test PluginDelete
       
   184 test HeapCheck
       
   185 delete test
       
   186 [Endtest]
       
   187 
       
   188 // Tests WmPlugin NotifyWidgetListChanged 10->9 widgets
       
   189 [Test]
       
   190 title WmPlugin notify 10->9
       
   191 create wmunittest test
       
   192 test HeapSet
       
   193 test PluginCreate
       
   194 test SetMass 10
       
   195 test PluginActivate
       
   196 pause 500
       
   197 test SetMass 9
       
   198 test PluginWidgetsChanged
       
   199 pause 500
       
   200 test PluginDeactivate
       
   201 pause 500
       
   202 test PluginDelete
       
   203 test HeapCheck
       
   204 delete test
       
   205 [Endtest]
       
   206 
       
   207 // Tests WmPlugin NotifyWidgetListChanged 0->10 widgets
       
   208 [Test]
       
   209 title WmPlugin notify 0->10
       
   210 create wmunittest test
       
   211 test HeapSet
       
   212 test PluginCreate
       
   213 test SetMass 0
       
   214 test PluginActivate
       
   215 pause 500
       
   216 test SetMass 10
       
   217 test PluginWidgetsChanged
       
   218 pause 500
       
   219 test PluginDeactivate
       
   220 pause 500
       
   221 test PluginDelete
       
   222 test HeapCheck
       
   223 delete test
       
   224 [Endtest]
       
   225 
       
   226 // Tests WmPlugin NotifyWidgetListChanged 10->0 widgets
       
   227 [Test]
       
   228 title WmPlugin notify 10->0
       
   229 create wmunittest test
       
   230 test HeapSet
       
   231 test PluginCreate
       
   232 test SetMass 10
       
   233 test PluginActivate
       
   234 pause 500
       
   235 test SetMass 0
       
   236 test PluginWidgetsChanged
       
   237 pause 500
       
   238 test PluginDeactivate
       
   239 pause 500
       
   240 test PluginDelete
       
   241 test HeapCheck
       
   242 delete test
       
   243 [Endtest]
       
   244 
       
   245 // Tests WmPlugin NotifyWidgetListChanged with ridiculous amount of widgets
       
   246 // testing the OOM error handling
       
   247 [Test]
       
   248 title WmPlugin notify OOM
       
   249 create wmunittest test
       
   250 test HeapSet
       
   251 test PluginCreate
       
   252 test SetMass 10
       
   253 test PluginActivate
       
   254 pause 500
       
   255 test SetMass 10000
       
   256 test PluginWidgetsChanged
       
   257 pause 500
       
   258 test PluginDeactivate
       
   259 pause 500
       
   260 test PluginDelete
       
   261 test HeapCheck
       
   262 delete test
       
   263 [Endtest]
       
   264 
       
   265 // Tests WmPlugin with large data amount
       
   266 [Test]
       
   267 title WmPlugin capacity
       
   268 create wmunittest test
       
   269 test HeapSet
       
   270 test PluginCreate
       
   271 test SetMass MAX_WIDGET_AMOUNT
       
   272 test PluginActivate
       
   273 pause 3000
       
   274 test PluginDelete
       
   275 test HeapCheck
       
   276 delete test
       
   277 [Endtest] 
       
   278 
       
   279 // Tests WmPlugin by notifying widget list changed hundreds of times
       
   280 // with different widget amounts and different timeouts. Target is to
       
   281 // interrupt the previous update process test that it is cancelled ok
       
   282 [Test]
       
   283 title WmPlugin robustness
       
   284 create wmunittest test
       
   285 test HeapSet
       
   286 test PluginCreate
       
   287 test SetMass 5
       
   288 test PluginActivate
       
   289 pause 500
       
   290 loop 100
       
   291 test SetMass 10
       
   292 test PluginWidgetsChanged
       
   293 pause 10
       
   294 test SetMass 15
       
   295 test PluginWidgetsChanged
       
   296 pause 90
       
   297 test SetMass 11
       
   298 test PluginWidgetsChanged
       
   299 pause 50
       
   300 test SetMass 16
       
   301 test PluginWidgetsChanged
       
   302 pause 120
       
   303 endloop
       
   304 test PluginDeactivate
       
   305 pause 500
       
   306 test PluginDelete
       
   307 test HeapCheck
       
   308 delete test
       
   309 [Endtest] 
       
   310 
       
   311 //-------------------------------------------------------------------------------
       
   312 // Test cases for the persistent widget order
       
   313 //-------------------------------------------------------------------------------
       
   314 //
       
   315 
       
   316 // Tests persistent widget order NewL method
       
   317 [Test]
       
   318 title Widget order create
       
   319 create wmunittest test
       
   320 test HeapSet
       
   321 test WidgetOrderCreate
       
   322 test WidgetOrderCheckIsEmpty TRUE
       
   323 test WidgetOrderDelete
       
   324 test HeapCheck
       
   325 delete test
       
   326 [Endtest] 
       
   327 
       
   328 // Test persistent widget order STORE method
       
   329 [Test]
       
   330 title Widget order store
       
   331 create wmunittest test
       
   332 test HeapSet
       
   333 test WidgetOrderCreate
       
   334 test WidgetOrderCheckIsEmpty TRUE
       
   335 test SetMass 5
       
   336 test WidgetOrderSave
       
   337 test WidgetOrderCheckIsEmpty FALSE
       
   338 test WidgetOrderDelete
       
   339 test HeapCheck
       
   340 delete test
       
   341 [Endtest] 
       
   342 
       
   343 // Test persistent widget order STORE method when storing an empty array
       
   344 [Test]
       
   345 title Widget order store empty
       
   346 create wmunittest test
       
   347 test HeapSet
       
   348 test WidgetOrderCreate
       
   349 test WidgetOrderCheckIsEmpty TRUE
       
   350 test SetMass 0
       
   351 test WidgetOrderSave
       
   352 test WidgetOrderCheckIsEmpty TRUE
       
   353 test WidgetOrderDelete
       
   354 test HeapCheck
       
   355 delete test
       
   356 [Endtest] 
       
   357 
       
   358 
       
   359 // Tests persistent widget order LOAD method
       
   360 [Test]
       
   361 title Widget order load
       
   362 create wmunittest test
       
   363 test HeapSet
       
   364 test WidgetOrderCreate
       
   365 test SetMass 5
       
   366 test WidgetOrderSave
       
   367 test WidgetOrderCheckIsEmpty 0
       
   368 test WidgetOrderDelete
       
   369 test WidgetOrderCreate
       
   370 test WidgetOrderLoad
       
   371 test WidgetOrderCheckIsEmpty 0
       
   372 test WidgetOrderDelete
       
   373 test HeapCheck
       
   374 delete test
       
   375 [Endtest] 
       
   376 
       
   377 // Tests persistent widget order LOAD method when count is ZERO
       
   378 [Test]
       
   379 title Widget order load empty
       
   380 create wmunittest test
       
   381 test HeapSet
       
   382 test WidgetOrderCreate
       
   383 test SetMass 0
       
   384 test WidgetOrderSave
       
   385 test WidgetOrderCheckIsEmpty TRUE
       
   386 test WidgetOrderDelete
       
   387 test WidgetOrderCreate
       
   388 test WidgetOrderLoad
       
   389 test WidgetOrderCheckIsEmpty TRUE
       
   390 test WidgetOrderDelete
       
   391 test HeapCheck
       
   392 delete test
       
   393 [Endtest] 
       
   394 
       
   395 // Tests persistent widget order INDEXOF method
       
   396 [Test]
       
   397 title Widget order use
       
   398 create wmunittest test
       
   399 test HeapSet
       
   400 test WidgetOrderCreate
       
   401 test SetMass 8
       
   402 test WidgetOrderSave
       
   403 test WidgetOrderCheckIsEmpty FALSE
       
   404 test WidgetOrderUse
       
   405 test WidgetOrderDelete
       
   406 test HeapCheck
       
   407 delete test
       
   408 [Endtest] 
       
   409 
       
   410 // Tests persistent widget order INDEXOF method when class is empty
       
   411 [Test]
       
   412 title Widget order use empty
       
   413 create wmunittest test
       
   414 test HeapSet
       
   415 test WidgetOrderCreate
       
   416 test WidgetOrderCheckIsEmpty TRUE
       
   417 test SetMass 0
       
   418 test WidgetOrderUse
       
   419 test WidgetOrderDelete
       
   420 test HeapCheck
       
   421 delete test
       
   422 [Endtest] 
       
   423 
       
   424 // Tests persistent widget order with large data amount
       
   425 [Test]
       
   426 title Widget order capacity
       
   427 create wmunittest test
       
   428 test HeapSet
       
   429 test WidgetOrderCreate
       
   430 test SetMass MAX_WIDGET_AMOUNT
       
   431 test WidgetOrderSave
       
   432 test WidgetOrderDelete
       
   433 test WidgetOrderCreate
       
   434 test WidgetOrderLoad
       
   435 test SetMass MAX_WIDGET_AMOUNT
       
   436 test WidgetOrderUse
       
   437 test WidgetOrderDelete
       
   438 test HeapCheck
       
   439 delete test
       
   440 [Endtest] 
       
   441 
       
   442 // Tests persistent widget order save & load 100 times in sequence
       
   443 [Test]
       
   444 title Widget order robustness
       
   445 create wmunittest test
       
   446 test HeapSet
       
   447 test WidgetOrderCreate
       
   448 test SetMass 100
       
   449 loop 100
       
   450 test WidgetOrderSave
       
   451 endloop
       
   452 test WidgetOrderDelete
       
   453 test WidgetOrderCreate
       
   454 test SetMass 100
       
   455 loop 100
       
   456 test WidgetOrderLoad
       
   457 endloop
       
   458 test WidgetOrderUse
       
   459 test WidgetOrderDelete
       
   460 test HeapCheck
       
   461 delete test
       
   462 [Endtest] 
       
   463 
       
   464 
       
   465 //-------------------------------------------------------------------------------
       
   466 // Test cases for the image converter
       
   467 //-------------------------------------------------------------------------------
       
   468 //
       
   469 
       
   470 // Tests image converter NewL method
       
   471 [Test]
       
   472 title Image converter create delete
       
   473 create wmunittest test
       
   474 test HeapSet
       
   475 test ImageConverterCreate
       
   476 test ImageConverterConversionMethod EUnrecognized
       
   477 test ImageConverterDelete
       
   478 test HeapCheck
       
   479 delete test
       
   480 [Endtest] 
       
   481 
       
   482 // Tests malformed icon string
       
   483 [Test]
       
   484 title malformed image formats
       
   485 create wmunittest test
       
   486 test HeapSet
       
   487 test ImageConverterCreate
       
   488 test ImageConverterConvert "foo bar"
       
   489 test ImageConverterWaitResult FAIL
       
   490 test ImageConverterConvert "*************"
       
   491 test ImageConverterWaitResult FAIL
       
   492 test ImageConverterConvert "uid skin mif logo icon jpg jpeg icon"
       
   493 test ImageConverterWaitResult FAIL
       
   494 test ImageConverterConvert "girl.jpg"
       
   495 test ImageConverterWaitResult FAIL
       
   496 test ImageConverterConvert "dirty_hack.exe"
       
   497 test ImageConverterWaitResult FAIL
       
   498 test ImageConverterConvert "c:/testframework/wmunittest/wmlogo/logo.jpg"
       
   499 test ImageConverterWaitResult FAIL
       
   500 test ImageConverterConvert "skin (0x10005a26 0x1000 )"
       
   501 test ImageConverterWaitResult FAIL
       
   502 test ImageConverterConvert "mif ( c:\testframework\wmunittest\wmlogo\logo.mif 16384 16385)"
       
   503 test ImageConverterWaitResult FAIL
       
   504 test ImageConverterConvert "skin( 0x100056c6 0x86 ):mif ( c:\testframework\wmunittest\wmlogo\logo.mif 16384 16385 )"
       
   505 test ImageConverterWaitResult FAIL
       
   506 test ImageConverterConvert "skin ( 0x101f84b7 0x1000594D ) : mif ( c:\testframework\wmunittest\wmlogo\logo.mif 16384 16385 )"
       
   507 test ImageConverterWaitResult FAIL
       
   508 test ImageConverterConvert " uid(0x10005901 )"
       
   509 test ImageConverterWaitResult FAIL
       
   510 test ImageConverterConvert "uid (268458241  )"
       
   511 test ImageConverterWaitResult FAIL
       
   512 test ImageConverterConvert "uid (0x10005901)"
       
   513 test ImageConverterWaitResult FAIL
       
   514 test ImageConverterDelete
       
   515 test HeapCheck
       
   516 delete test
       
   517 [Endtest] 
       
   518 
       
   519 
       
   520 // Tests image converter with skin syntax
       
   521 [Test]
       
   522 title Image converter skin
       
   523 create wmunittest test
       
   524 test HeapSet
       
   525 test ImageConverterCreate
       
   526 test ImageConverterConvert "skin(0x101F86E3 0x100d)"
       
   527 test ImageConverterWaitResult OK
       
   528 test ImageConverterConversionMethod ESkinIcon
       
   529 test ImageConverterDelete
       
   530 test HeapCheck
       
   531 delete test
       
   532 [Endtest]
       
   533 
       
   534 // Tests image converter skin method with null skin item ids
       
   535 [Test]
       
   536 title Image converter skin (null)
       
   537 create wmunittest test
       
   538 test HeapSet
       
   539 test ImageConverterCreate
       
   540 test ImageConverterConvert "skin(0 0)"
       
   541 test ImageConverterWaitResult FAIL
       
   542 test ImageConverterDelete
       
   543 test HeapCheck
       
   544 delete test
       
   545 [Endtest]
       
   546 
       
   547 // Tests image converter with skin/mif syntax
       
   548 [Test]
       
   549 title Image converter skin/mif
       
   550 create wmunittest test
       
   551 test HeapSet
       
   552 test ImageConverterCreate
       
   553 test ImageConverterConvert "skin(270501603 4145):mif(c:\testframework\wmunittest\wmlogo\logo.mif 16384 16385)"
       
   554 test ImageConverterWaitResult OK
       
   555 test ImageConverterConversionMethod ESkinAndMifIcon
       
   556 test ImageConverterDelete
       
   557 test HeapCheck
       
   558 delete test
       
   559 [Endtest] 
       
   560 
       
   561 // Tests image converter mif method
       
   562 [Test]
       
   563 title Image converter mif
       
   564 create wmunittest test
       
   565 test HeapSet
       
   566 test ImageConverterCreate
       
   567 test ImageConverterConvert "mif(c:\testframework\wmunittest\wmlogo\logo.mif 16384 16385)"
       
   568 test ImageConverterWaitResult OK
       
   569 test ImageConverterConversionMethod EMifIcon
       
   570 test ImageConverterDelete
       
   571 test HeapCheck
       
   572 delete test
       
   573 [Endtest]
       
   574 
       
   575 // Tests image converter mif method with invalid path
       
   576 [Test]
       
   577 title Image converter mif (invalid path)
       
   578 create wmunittest test
       
   579 test HeapSet
       
   580 test ImageConverterCreate
       
   581 test ImageConverterConvert "mif(c:\blabla.mif 16384 16385)"
       
   582 test ImageConverterWaitResult FAIL
       
   583 test ImageConverterDelete
       
   584 test HeapCheck
       
   585 delete test
       
   586 [Endtest]
       
   587 
       
   588 // Tests image converter mif method with invalid bitmap & mask ids
       
   589 [Test]
       
   590 title Image converter mif (invalid ids)
       
   591 create wmunittest test
       
   592 test HeapSet
       
   593 test ImageConverterCreate
       
   594 test ImageConverterConvert "mif(c:\testframework\wmunittest\wmlogo\logo.mif 1 2)"
       
   595 test ImageConverterWaitResult FAIL
       
   596 test ImageConverterDelete
       
   597 test HeapCheck
       
   598 delete test
       
   599 [Endtest]
       
   600 
       
   601 // Tests image converter uid method
       
   602 [Test]
       
   603 title Image converter uid
       
   604 create wmunittest test
       
   605 test HeapSet
       
   606 test ImageConverterCreate
       
   607 test ImageConverterConvert "uid(0x10005901)"
       
   608 test ImageConverterWaitResult OK
       
   609 test ImageConverterConversionMethod EUidIcon
       
   610 test ImageConverterDelete
       
   611 test HeapCheck
       
   612 delete test
       
   613 [Endtest]
       
   614 
       
   615 // Tests image converter uid method with null uid
       
   616 [Test]
       
   617 title Image converter uid (null)
       
   618 create wmunittest test
       
   619 test HeapSet
       
   620 test ImageConverterCreate
       
   621 test ImageConverterConvert "uid(0x0)"
       
   622 test ImageConverterWaitResult FAIL
       
   623 test ImageConverterDelete
       
   624 test HeapCheck
       
   625 delete test
       
   626 [Endtest]
       
   627 
       
   628 // Tests image converter uid method with wrt widget uid.
       
   629 [Test]
       
   630 title Image converter wrt widget
       
   631 create wmunittest test
       
   632 test HeapSet
       
   633 test InstallWrtWidget "c:\testframework\wmunittest\wmlogo\test.wgz"
       
   634 test ImageConverterCreate
       
   635 test ImageConverterConvert "uid(0x2000DAD2)"
       
   636 test ImageConverterWaitResult OK
       
   637 test ImageConverterConversionMethod EUidIcon
       
   638 test ImageConverterDelete
       
   639 test UninstallWrtWidget "0x2000DAD2"
       
   640 test HeapCheck
       
   641 delete test
       
   642 [Endtest]
       
   643 
       
   644 // Tests image converter svg method
       
   645 [Test]
       
   646 title Image converter svg
       
   647 create wmunittest test
       
   648 test HeapSet
       
   649 test ImageConverterCreate
       
   650 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logo.svg"
       
   651 test ImageConverterWaitResult OK
       
   652 test ImageConverterConversionMethod ESvgIcon
       
   653 test ImageConverterDelete
       
   654 test HeapCheck
       
   655 delete test
       
   656 [Endtest]
       
   657 
       
   658 // Tests image converter svg method corrupt file.
       
   659 [Test]
       
   660 title Image converter svg (corrupted)
       
   661 create wmunittest test
       
   662 test HeapSet
       
   663 test ImageConverterCreate
       
   664 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logocorrupt.svg"
       
   665 test ImageConverterWaitResult FAIL
       
   666 test ImageConverterConversionMethod ESvgIcon
       
   667 test ImageConverterDelete
       
   668 test HeapCheck
       
   669 delete test
       
   670 [Endtest]
       
   671 
       
   672 // Tests image converter png method
       
   673 [Test]
       
   674 title Image converter png
       
   675 create wmunittest test
       
   676 test HeapSet
       
   677 test ImageConverterCreate
       
   678 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logo.png"
       
   679 test ImageConverterWaitResult OK
       
   680 test ImageConverterConversionMethod EImageIcon
       
   681 test ImageConverterDelete
       
   682 test HeapCheck
       
   683 delete test
       
   684 [Endtest]
       
   685 
       
   686 // Tests image converter png method corrupt file.
       
   687 [Test]
       
   688 title Image converter png (corrupted)
       
   689 create wmunittest test
       
   690 test HeapSet
       
   691 test ImageConverterCreate
       
   692 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logocorrupt.png"
       
   693 test ImageConverterWaitResult FAIL
       
   694 test ImageConverterDelete
       
   695 test HeapCheck
       
   696 delete test
       
   697 [Endtest]
       
   698 
       
   699 // Tests image converter jpeg method
       
   700 [Test]
       
   701 title Image converter jpeg
       
   702 create wmunittest test
       
   703 test HeapSet
       
   704 test ImageConverterCreate
       
   705 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logo.jpg"
       
   706 test ImageConverterWaitResult OK
       
   707 test ImageConverterConversionMethod EImageIcon
       
   708 test ImageConverterDelete
       
   709 test HeapCheck
       
   710 delete test
       
   711 [Endtest]
       
   712 
       
   713 // Tests image converter jpeg method
       
   714 [Test]
       
   715 title Image converter jpeg (corrupted)
       
   716 create wmunittest test
       
   717 test HeapSet
       
   718 test ImageConverterCreate
       
   719 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logocorrupt.jpg"
       
   720 test ImageConverterWaitResult FAIL
       
   721 test ImageConverterDelete
       
   722 test HeapCheck
       
   723 delete test
       
   724 [Endtest]
       
   725 
       
   726 // Tests image converter cancel
       
   727 [Test]
       
   728 title Image converter cancel
       
   729 create wmunittest test
       
   730 test HeapSet
       
   731 test ImageConverterCreate
       
   732 test ImageConverterConvert "c:\testframework\wmunittest\wmlogo\logo.svg"
       
   733 test CancelConvert
       
   734 test ImageConverterWaitResult FAIL
       
   735 test ImageConverterDelete
       
   736 test HeapCheck
       
   737 delete test
       
   738 [Endtest]
       
   739 
       
   740 
       
   741 //-------------------------------------------------------------------------------
       
   742 // Misc Test cases
       
   743 //-------------------------------------------------------------------------------
       
   744 //
       
   745 
       
   746 // Tests error note
       
   747 [Test]
       
   748 title Other error note
       
   749 create wmunittest test
       
   750 test HeapSet
       
   751 test PluginCreate
       
   752 test PluginActivate
       
   753 test ErrorPopup
       
   754 pause 3000
       
   755 test PluginDelete
       
   756 test HeapCheck
       
   757 delete test
       
   758 [Endtest]
       
   759 
       
   760 /*
       
   761 // Test for heikki to play :)
       
   762 [Test]
       
   763 title WmPlugin 1h test
       
   764 create wmunittest test
       
   765 test HeapSet
       
   766 test PluginCreate
       
   767 test SetMass 500
       
   768 test PluginActivate
       
   769 pause 3600000
       
   770 test PluginDelete
       
   771 test HeapCheck
       
   772 delete test
       
   773 [Endtest]
       
   774 */
       
   775 
       
   776