uifw/AvKon/tsrc/bc/S60_SDK5.0/bctestdocandinit/src/bctestDocAndInitcase.cpp
branchRCL_3
changeset 50 a1caeb42b3a3
parent 0 2f259fa3e83a
equal deleted inserted replaced
38:c52421ed5f07 50:a1caeb42b3a3
    78 // ---------------------------------------------------------------------------
    78 // ---------------------------------------------------------------------------
    79 //
    79 //
    80 void CBCTestDocAndInitCase::BuildScriptL()
    80 void CBCTestDocAndInitCase::BuildScriptL()
    81     { 
    81     { 
    82     
    82     
    83     TCFDDriveStatus status = DriveStatus( EDriveE );
    83        const TInt scripts[] =
    84 	
    84         {
    85 	if (status != EDriveNotReady)
    85         DELAY( 1 ), // delay between commands is 1*0.1 seconds = 0.1 seconds
    86         {
    86         LeftCBA, 
    87 		// Have E drive
    87         LeftCBA,
    88         AddTestL( DELAY( 10 ), 
    88         WAIT( 10 ),
    89 		LeftCBA, Down, LeftCBA, DELAY( 10 ), 
    89         LeftCBA, 
    90 		LeftCBA, LeftCBA, DELAY( 10 ), 
    90         WAIT( 5 ),
    91 		LeftCBA, DELAY( 10 ),
    91         LeftCBA, 
    92 		LeftCBA, DELAY( 10 ),
    92         WAIT( 5 ),
    93 		LeftCBA, DELAY( 10 ),
    93         LeftCBA,
    94 		
    94         WAIT( 5 ),
    95 		LeftCBA, TEND );
    95         LeftCBA, 
    96         }
    96         DELAY( 15 ),         
    97 	else
    97         LeftCBA,
    98 	    {
    98         DELAY( 1 ), 
    99 		// Not have E drive
    99         Down, 
   100 		AddTestL( DELAY( 10 ), 
   100         LeftCBA
   101 		LeftCBA, Down, LeftCBA, DELAY( 10 ), 
   101         };
   102 		LeftCBA, LeftCBA, DELAY( 20 ), 
   102     AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) );
   103 		LeftCBA, TEND );
       
   104 	    }
       
   105     }
   103     }
   106 // ---------------------------------------------------------------------------
   104 // ---------------------------------------------------------------------------
   107 // CBCTestDocAndInitCase::DriveStatus
   105 // CBCTestDocAndInitCase::DriveStatus
   108 // ---------------------------------------------------------------------------
   106 // ---------------------------------------------------------------------------
   109 //
   107 //