2345 } |
2345 } |
2346 TheClient->WaitForAllEventProcessingToFinish(); |
2346 TheClient->WaitForAllEventProcessingToFinish(); |
2347 User::After(1000000); //1sec, give other sessions a chance to respond to the events |
2347 User::After(1000000); //1sec, give other sessions a chance to respond to the events |
2348 } |
2348 } |
2349 |
2349 |
|
2350 void CTWindowTest::TestNotSupportedFunctionality() |
|
2351 { |
|
2352 TInt err = KErrNone; |
|
2353 TSize windowSize = TSize(10,10); |
|
2354 TSize testSize = TSize(); |
|
2355 |
|
2356 RWindowGroup group(TheClient->iWs); |
|
2357 RWindow window(TheClient->iWs); |
|
2358 |
|
2359 err = group.Construct((TUint32)&group, EFalse); |
|
2360 TEST(err==KErrNone); |
|
2361 err = window.Construct(group,(TUint32)&window); |
|
2362 TEST(err==KErrNone); |
|
2363 |
|
2364 window.SetExtent(TPoint(0,0),windowSize); |
|
2365 window.Activate(); |
|
2366 |
|
2367 testSize = window.Size(); |
|
2368 TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); |
|
2369 |
|
2370 testSize = window.SizeForEgl(); |
|
2371 TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); |
|
2372 |
|
2373 err = window.FixNativeOrientation(); |
|
2374 TEST(err==KErrNotSupported); |
|
2375 |
|
2376 testSize = window.Size(); |
|
2377 TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); |
|
2378 |
|
2379 testSize = window.SizeForEgl(); |
|
2380 TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); |
|
2381 |
|
2382 window.Close(); |
|
2383 group.Close(); |
|
2384 } |
|
2385 |
2350 void CTWindowTest::RunTestCaseL(TInt /*aCurTestCase*/) |
2386 void CTWindowTest::RunTestCaseL(TInt /*aCurTestCase*/) |
2351 { |
2387 { |
2352 _LIT(KTest1,"Window"); |
2388 _LIT(KTest1,"Window"); |
2353 _LIT(KTest2,"DestroyWindowWithActiveGc"); |
2389 _LIT(KTest2,"DestroyWindowWithActiveGc"); |
2354 _LIT(KTest3,"Shadow/NoAutoClear"); |
2390 _LIT(KTest3,"Shadow/NoAutoClear"); |
2377 #endif |
2413 #endif |
2378 |
2414 |
2379 ((CTWindowTestStep*)iStep)->SetTestStepID(KNotATestSYMTestCaseIDName); |
2415 ((CTWindowTestStep*)iStep)->SetTestStepID(KNotATestSYMTestCaseIDName); |
2380 |
2416 |
2381 _LIT(KTest26,"Saturate SendEvent"); |
2417 _LIT(KTest26,"Saturate SendEvent"); |
|
2418 _LIT(KTest27,"Not Supported Functionality"); |
2382 |
2419 |
2383 switch(++iTest->iState) |
2420 switch(++iTest->iState) |
2384 { |
2421 { |
2385 /** |
2422 /** |
2386 @SYMTestCaseID GRAPHICS-WSERV-0029 |
2423 @SYMTestCaseID GRAPHICS-WSERV-0029 |
2872 case 23: |
2909 case 23: |
2873 ((CTWindowTestStep*)iStep)->SetTestStepID(_L("GRAPHICS-WSERV-0495")); |
2910 ((CTWindowTestStep*)iStep)->SetTestStepID(_L("GRAPHICS-WSERV-0495")); |
2874 iTest->LogSubTest(KTest26); |
2911 iTest->LogSubTest(KTest26); |
2875 SaturateSendEvent(); |
2912 SaturateSendEvent(); |
2876 break; |
2913 break; |
|
2914 /** |
|
2915 @SYMTestCaseID GRAPHICS-WSERV-0655 |
|
2916 |
|
2917 @SYMDEF ou1cimx1#329309 |
|
2918 |
|
2919 @SYMTestCaseDesc Fix native orientation functionality not supported |
|
2920 |
|
2921 @SYMTestPriority Medium |
|
2922 |
|
2923 @SYMTestStatus Implemented |
|
2924 |
|
2925 @SYMTestActions Call fucntions related to fix native orientation on a window |
|
2926 |
|
2927 @SYMTestExpectedResults Fix native orientation functionality not supported |
|
2928 */ |
|
2929 case 24: |
|
2930 ((CTWindowTestStep*)iStep)->SetTestStepID(_L("GRAPHICS-WSERV-0655")); |
|
2931 iTest->LogSubTest(KTest27); |
|
2932 TestNotSupportedFunctionality(); |
|
2933 break; |
2877 default: |
2934 default: |
2878 ((CTWindowTestStep*)iStep)->SetTestStepID(KNotATestSYMTestCaseIDName); |
2935 ((CTWindowTestStep*)iStep)->SetTestStepID(KNotATestSYMTestCaseIDName); |
2879 ((CTWindowTestStep*)iStep)->CloseTMSGraphicsStep(); |
2936 ((CTWindowTestStep*)iStep)->CloseTMSGraphicsStep(); |
2880 TestComplete(); |
2937 TestComplete(); |
2881 break; |
2938 break; |