598 tn DeleteInstance |
607 tn DeleteInstance |
599 delete tn |
608 delete tn |
600 pause KTestDelay |
609 pause KTestDelay |
601 [Endtest] |
610 [Endtest] |
602 |
611 |
603 |
612 // --------------------------------------------------------------------------- |
604 // --------------------------------------------------------------------------- |
613 // Create MP3 thumbnail with PNG album art |
605 // Thumbs from buffer |
614 // --------------------------------------------------------------------------- |
606 // --------------------------------------------------------------------------- |
615 [Test] |
607 [Test] |
616 title Create MP3 thumbnail with PNG album art |
608 title Thumbs from buffer |
617 create ThumbnailManagerTest tn |
|
618 tn CreateInstanceL |
|
619 tn SetDisplayModeL EColor16M |
|
620 |
|
621 // using path |
|
622 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\mp3_png.mp3 |
|
623 tn DeleteThumbnails |
|
624 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
625 tn GetThumbnailL |
|
626 waittestclass tn |
|
627 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
628 tn DeleteThumbnails |
|
629 tn SetThumbnailEnumSizeL EImageFullScreenThumbnailSize |
|
630 tn GetThumbnailL |
|
631 waittestclass tn |
|
632 tn CheckThumbnailCenrepL EImageFullScreenThumbnailSize EColor16M |
|
633 tn DeleteThumbnails |
|
634 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
635 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
636 tn GetThumbnailL |
|
637 waittestclass tn |
|
638 tn CheckThumbnailL KCustomSizeX KCustomSizeY EColor16M |
|
639 tn DeleteThumbnails |
|
640 tn DeleteSourceInstance |
|
641 |
|
642 tn DeleteInstance |
|
643 delete tn |
|
644 pause KTestDelay |
|
645 [Endtest] |
|
646 |
|
647 // --------------------------------------------------------------------------- |
|
648 // Create thumbnail preview from JPG with EXIF |
|
649 // --------------------------------------------------------------------------- |
|
650 [Test] |
|
651 title Create thumbnail preview from JPG with EXIF |
|
652 create ThumbnailManagerTest tn |
|
653 tn CreateInstanceL |
|
654 tn SetDisplayModeL EColor16M |
|
655 |
|
656 // jpg with exif |
|
657 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg |
|
658 tn DeleteThumbnails |
|
659 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
660 tn SetQualityPreferenceL EOptimizeForQualityWithPreview |
|
661 tn GetThumbnailL |
|
662 waittestclass tn |
|
663 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
664 tn DeleteThumbnails |
|
665 tn DeleteSourceInstance |
|
666 |
|
667 // png with exif |
|
668 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\exif.png |
|
669 tn DeleteThumbnails |
|
670 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
671 tn SetQualityPreferenceL EOptimizeForQualityWithPreview |
|
672 tn GetThumbnailL |
|
673 waittestclass tn |
|
674 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
675 tn DeleteThumbnails |
|
676 tn DeleteSourceInstance |
|
677 |
|
678 // no exif |
|
679 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\no_exif.jpg |
|
680 tn DeleteThumbnails |
|
681 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
682 tn SetQualityPreferenceL EOptimizeForQualityWithPreview |
|
683 tn GetThumbnailL |
|
684 waittestclass tn |
|
685 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
686 tn DeleteThumbnails |
|
687 tn DeleteSourceInstance |
|
688 |
|
689 tn DeleteInstance |
|
690 delete tn |
|
691 pause KTestDelay |
|
692 [Endtest] |
|
693 |
|
694 // --------------------------------------------------------------------------- |
|
695 // Create thumbnail from WMA PNG & empty album arts |
|
696 // --------------------------------------------------------------------------- |
|
697 [Test] |
|
698 title Create thumbnail from WMA PNG & empty album arts |
|
699 create ThumbnailManagerTest tn |
|
700 tn CreateInstanceL |
|
701 tn SetDisplayModeL EColor16M |
|
702 |
|
703 // try to create thumbnail from PNG |
|
704 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\wma_png.wma |
|
705 tn DeleteThumbnails |
|
706 tn SetThumbnailEnumSizeL EAudioFullScreenThumbnailSize |
|
707 tn GetThumbnailL |
|
708 allownextresult KErrNotFound |
|
709 waittestclass tn |
|
710 tn DeleteThumbnails |
|
711 tn DeleteSourceInstance |
|
712 |
|
713 // try to create thumbnail without album art |
|
714 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\wma_empty.wma |
|
715 tn DeleteThumbnails |
|
716 tn SetThumbnailEnumSizeL EAudioFullScreenThumbnailSize |
|
717 tn GetThumbnailL |
|
718 allownextresult KErrNotFound |
|
719 waittestclass tn |
|
720 tn DeleteThumbnails |
|
721 tn DeleteSourceInstance |
|
722 |
|
723 tn DeleteInstance |
|
724 delete tn |
|
725 pause KTestDelay |
|
726 [Endtest] |
|
727 |
|
728 |
|
729 // --------------------------------------------------------------------------- |
|
730 // Create thumbs from buffer |
|
731 // --------------------------------------------------------------------------- |
|
732 [Test] |
|
733 title Create thumbs from buffer |
609 create ThumbnailManagerTest tn |
734 create ThumbnailManagerTest tn |
610 tn CreateInstanceL |
735 tn CreateInstanceL |
611 tn SetDisplayModeL EColor16M |
736 tn SetDisplayModeL EColor16M |
612 |
737 |
613 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\RGB_VGA.jpg image/jpeg |
738 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\RGB_VGA.jpg image/jpeg |
692 |
817 |
693 tn DeleteInstance |
818 tn DeleteInstance |
694 delete tn |
819 delete tn |
695 pause KTestDelay |
820 pause KTestDelay |
696 [Endtest] |
821 [Endtest] |
|
822 |
|
823 // --------------------------------------------------------------------------- |
|
824 // Create thumbs from CFbsBitmap |
|
825 // --------------------------------------------------------------------------- |
|
826 [Test] |
|
827 title Create thumbs from CFbsBitmap |
|
828 create ThumbnailManagerTest tn |
|
829 tn CreateInstanceL |
|
830 tn SetDisplayModeL EColor16M |
|
831 |
|
832 tn SetFlagsL EDefaultFlags |
|
833 tn CreateSourceInstanceBitmapL \data\ThumbnailManagerTest\TestMBM.mbm \data\ThumbnailManagerTest\camera.jpg |
|
834 tn DeleteThumbnails |
|
835 tn CreateThumbnails |
|
836 waittestclass tn |
|
837 |
|
838 pause KTenSecondDelay |
|
839 |
|
840 tn DeleteSourceInstance |
|
841 |
|
842 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\camera.jpg |
|
843 tn SetFlagsL EDoNotCreate |
|
844 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
845 tn GetThumbnailL |
|
846 waittestclass tn |
|
847 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
848 tn SetThumbnailEnumSizeL EImageFullScreenThumbnailSize |
|
849 tn GetThumbnailL |
|
850 waittestclass tn |
|
851 tn CheckThumbnailCenrepL EImageFullScreenThumbnailSize EColor16M |
|
852 tn DeleteThumbnails |
|
853 tn DeleteSourceInstance |
|
854 |
|
855 tn DeleteInstance |
|
856 delete tn |
|
857 pause KTestDelay |
|
858 [Endtest] |
|
859 |
|
860 |
|
861 // --------------------------------------------------------------------------- |
|
862 // Create image/audio/video thumbs |
|
863 // --------------------------------------------------------------------------- |
|
864 [Test] |
|
865 title Create image/audio/video thumbs |
|
866 create ThumbnailManagerTest tn |
|
867 tn CreateInstanceL |
|
868 tn SetDisplayModeL EColor16M |
|
869 |
|
870 // try to create thumbnail from image |
|
871 tn CreateThumbnailsByUrlL \data\ThumbnailManagerTest\RGB_VGA.jpg |
|
872 waittestclass tn |
|
873 tn DeleteThumbnails |
|
874 tn DeleteSourceInstance |
|
875 |
|
876 // try to create thumbnail from music |
|
877 tn CreateThumbnailsByUrlL \data\ThumbnailManagerTest\mp3_png.mp3 |
|
878 waittestclass tn |
|
879 tn DeleteThumbnails |
|
880 tn DeleteSourceInstance |
|
881 |
|
882 // try to create thumbnail from video |
|
883 tn CreateThumbnailsByUrlL \data\ThumbnailManagerTest\Videoclip.mp4 |
|
884 waittestclass tn |
|
885 tn DeleteThumbnails |
|
886 tn DeleteSourceInstance |
|
887 |
|
888 tn DeleteInstance |
|
889 delete tn |
|
890 pause KTestDelay |
|
891 [Endtest] |
|
892 |
697 |
893 |
698 // --------------------------------------------------------------------------- |
894 // --------------------------------------------------------------------------- |
699 // Create thumbnails for each persistent size |
895 // Create thumbnails for each persistent size |
700 // --------------------------------------------------------------------------- |
896 // --------------------------------------------------------------------------- |
701 [Test] |
897 [Test] |
827 tn DeleteInstance |
1023 tn DeleteInstance |
828 delete tn |
1024 delete tn |
829 pause KTestDelay |
1025 pause KTestDelay |
830 [Endtest] |
1026 [Endtest] |
831 |
1027 |
832 |
|
833 // --------------------------------------------------------------------------- |
|
834 // Thumbnail from missing or unsupported file |
|
835 // --------------------------------------------------------------------------- |
|
836 [Test] |
|
837 title Thumbnail from missing or unsupported file |
|
838 create ThumbnailManagerTest tn |
|
839 tn CreateInstanceL |
|
840 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
841 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
842 |
|
843 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\does_not_exist.jpg |
|
844 tn GetThumbnailL |
|
845 allownextresult KErrNotFound |
|
846 waittestclass tn |
|
847 tn DeleteSourceInstance |
|
848 |
|
849 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\Unsupported.txt |
|
850 tn GetThumbnailL |
|
851 allownextresult KErrNotSupported |
|
852 waittestclass tn |
|
853 tn DeleteSourceInstance |
|
854 |
|
855 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\Unsupported.txt |
|
856 tn GetThumbnailL |
|
857 allownextresult KErrNotSupported |
|
858 waittestclass tn |
|
859 tn DeleteSourceInstance |
|
860 |
|
861 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\Unsupported.txt plain/text |
|
862 tn GetThumbnailL |
|
863 allownextresult KErrNotSupported |
|
864 waittestclass tn |
|
865 tn DeleteSourceInstance |
|
866 |
|
867 tn DeleteInstance |
|
868 delete tn |
|
869 pause KTestDelay |
|
870 [Endtest] |
|
871 |
|
872 // --------------------------------------------------------------------------- |
|
873 // Thumbnail from corrupt file |
|
874 // --------------------------------------------------------------------------- |
|
875 [Test] |
|
876 title Thumbnail from corrupt file |
|
877 create ThumbnailManagerTest tn |
|
878 tn CreateInstanceL |
|
879 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
880 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
881 |
|
882 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\not_jpg.jpg |
|
883 tn GetThumbnailL |
|
884 allownextresult KErrNotFound |
|
885 waittestclass tn |
|
886 tn DeleteSourceInstance |
|
887 |
|
888 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\not_jpg.jpg image/jpeg |
|
889 tn GetThumbnailL |
|
890 allownextresult KErrNotFound |
|
891 waittestclass tn |
|
892 tn DeleteSourceInstance |
|
893 |
|
894 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\not_3gp.3gp |
|
895 tn GetThumbnailL |
|
896 allownextresult KErrNotSupported |
|
897 waittestclass tn |
|
898 tn DeleteSourceInstance |
|
899 |
|
900 tn DeleteInstance |
|
901 delete tn |
|
902 pause KTestDelay |
|
903 [Endtest] |
|
904 |
|
905 |
|
906 // --------------------------------------------------------------------------- |
1028 // --------------------------------------------------------------------------- |
907 // Custom size thumbs |
1029 // Custom size thumbs |
908 // --------------------------------------------------------------------------- |
1030 // --------------------------------------------------------------------------- |
909 [Test] |
1031 [Test] |
910 title Custom size thumbs |
1032 title Custom size thumbs |
1590 pause KTestDelay |
1712 pause KTestDelay |
1591 [Endtest] |
1713 [Endtest] |
1592 |
1714 |
1593 |
1715 |
1594 // --------------------------------------------------------------------------- |
1716 // --------------------------------------------------------------------------- |
1595 // Get thumbnail by id |
1717 // Thumbnail from missing or unsupported file |
1596 // --------------------------------------------------------------------------- |
1718 // --------------------------------------------------------------------------- |
1597 [Test] |
1719 [Test] |
1598 title Get thumbnail by id |
1720 title Thumbnail from missing or unsupported file |
1599 create ThumbnailManagerTest tn |
1721 create ThumbnailManagerTest tn |
1600 tn CreateInstanceL |
1722 tn CreateInstanceL |
1601 tn SetDisplayModeL EColor16M |
1723 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
1602 |
1724 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
1603 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
1725 |
1604 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg 99999 |
1726 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\does_not_exist.jpg |
1605 tn DeleteThumbnails |
1727 tn GetThumbnailL |
1606 tn CreateThumbnails |
1728 allownextresult KErrNotFound |
1607 waittestclass tn |
1729 waittestclass tn |
1608 |
1730 tn DeleteSourceInstance |
1609 pause KTenSecondDelay |
1731 |
1610 |
1732 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\Unsupported.txt |
1611 tn SetFlagsL EDoNotCreate |
1733 tn GetThumbnailL |
1612 tn GetThumbnailByIdL 99999 |
1734 allownextresult KErrNotSupported |
1613 waittestclass tn |
1735 waittestclass tn |
1614 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
1736 tn DeleteSourceInstance |
1615 tn DeleteThumbnails |
1737 |
1616 |
1738 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\Unsupported.txt |
1617 tn DeleteSourceInstance |
1739 tn GetThumbnailL |
1618 tn DeleteInstance |
1740 allownextresult KErrNotSupported |
1619 delete tn |
1741 waittestclass tn |
1620 pause KTestDelay |
1742 tn DeleteSourceInstance |
1621 [Endtest] |
1743 |
|
1744 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\Unsupported.txt plain/text |
|
1745 tn GetThumbnailL |
|
1746 allownextresult KErrNotSupported |
|
1747 waittestclass tn |
|
1748 tn DeleteSourceInstance |
|
1749 |
|
1750 tn DeleteInstance |
|
1751 delete tn |
|
1752 pause KTestDelay |
|
1753 [Endtest] |
|
1754 |
|
1755 // --------------------------------------------------------------------------- |
|
1756 // Thumbnail from corrupt file |
|
1757 // --------------------------------------------------------------------------- |
|
1758 [Test] |
|
1759 title Thumbnail from corrupt file |
|
1760 create ThumbnailManagerTest tn |
|
1761 tn CreateInstanceL |
|
1762 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
1763 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
1764 |
|
1765 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\not_jpg.jpg |
|
1766 tn GetThumbnailL |
|
1767 allownextresult KErrNotFound |
|
1768 waittestclass tn |
|
1769 tn DeleteSourceInstance |
|
1770 |
|
1771 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\not_jpg.jpg image/jpeg |
|
1772 tn GetThumbnailL |
|
1773 allownextresult KErrNotFound |
|
1774 waittestclass tn |
|
1775 tn DeleteSourceInstance |
|
1776 |
|
1777 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\not_3gp.3gp |
|
1778 tn GetThumbnailL |
|
1779 allownextresult KErrNotSupported |
|
1780 waittestclass tn |
|
1781 tn DeleteSourceInstance |
|
1782 |
|
1783 tn DeleteInstance |
|
1784 delete tn |
|
1785 pause KTestDelay |
|
1786 [Endtest] |
|
1787 |
1622 |
1788 |
1623 // --------------------------------------------------------------------------- |
1789 // --------------------------------------------------------------------------- |
1624 // Set thumbnail from buffer |
1790 // Set thumbnail from buffer |
1625 // --------------------------------------------------------------------------- |
1791 // --------------------------------------------------------------------------- |
1626 [Test] |
1792 [Test] |
1676 delete tn |
1842 delete tn |
1677 pause KTestDelay |
1843 pause KTestDelay |
1678 [Endtest] |
1844 [Endtest] |
1679 |
1845 |
1680 // --------------------------------------------------------------------------- |
1846 // --------------------------------------------------------------------------- |
1681 // Import thumbnail |
1847 // Set thumbnail from path |
1682 // --------------------------------------------------------------------------- |
1848 // --------------------------------------------------------------------------- |
1683 [Test] |
1849 [Test] |
1684 title Import thumbnail |
1850 title Set thumbnail from path |
1685 create ThumbnailManagerTest tn |
1851 create ThumbnailManagerTest tn |
1686 tn CreateInstanceL |
1852 tn CreateInstanceL |
1687 tn SetDisplayModeL EColor16M |
1853 tn SetDisplayModeL EColor16M |
1688 |
1854 |
|
1855 // normal uri |
1689 tn SetFlagsL EDefaultFlags |
1856 tn SetFlagsL EDefaultFlags |
1690 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
1857 tn CreateSourceInstancePathTargetL \data\ThumbnailManagerTest\RGB_VGA.jpg \data\ThumbnailManagerTest\target.jpg image/jpeg 0 0 |
1691 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg |
1858 tn SetThumbnailL |
1692 tn DeleteThumbnails |
1859 |
1693 tn ImportThumbnailL \data\ThumbnailManagerTest\imported.jpg |
1860 waittestclass tn |
1694 waittestclass tn |
1861 |
1695 tn DeleteSourceInstance |
1862 tn DeleteSourceInstance |
1696 |
1863 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\target.jpg |
|
1864 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
1697 tn SetFlagsL EDoNotCreate |
1865 tn SetFlagsL EDoNotCreate |
1698 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\imported.jpg |
1866 tn GetThumbnailL |
1699 tn GetThumbnailL |
1867 |
1700 waittestclass tn |
1868 waittestclass tn |
1701 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
1869 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
1702 tn DeleteThumbnails |
1870 tn DeleteThumbnails |
1703 tn DeleteSourceInstance |
1871 tn DeleteSourceInstance |
1704 |
1872 |
|
1873 // virtual uri |
1705 tn SetFlagsL EDefaultFlags |
1874 tn SetFlagsL EDefaultFlags |
1706 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_400x300.bmp |
1875 tn CreateSourceInstancePathTargetL \data\ThumbnailManagerTest\RGB_VGA.jpg \data\ThumbnailManagerTest\target.vcf contact/x-vcard 0 1 |
1707 tn DeleteThumbnails |
1876 tn SetThumbnailL |
1708 tn ImportThumbnailL \data\ThumbnailManagerTest\imported.bmp |
1877 |
1709 waittestclass tn |
1878 waittestclass tn |
1710 tn DeleteSourceInstance |
1879 |
1711 |
1880 tn DeleteSourceInstance |
|
1881 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\target.vcf |
|
1882 tn SetThumbnailEnumSizeL EContactGridThumbnailSize |
1712 tn SetFlagsL EDoNotCreate |
1883 tn SetFlagsL EDoNotCreate |
1713 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\imported.bmp |
1884 tn GetThumbnailL |
1714 tn GetThumbnailL |
1885 |
1715 waittestclass tn |
1886 waittestclass tn |
1716 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
1887 tn CheckThumbnailCenrepL EContactGridThumbnailSize EColor16M |
1717 tn DeleteThumbnails |
|
1718 tn DeleteSourceInstance |
|
1719 |
|
1720 tn SetFlagsL EDefaultFlags |
|
1721 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
1722 tn DeleteThumbnails |
|
1723 tn ImportThumbnailL \data\ThumbnailManagerTest\imported.gif |
|
1724 waittestclass tn |
|
1725 tn DeleteSourceInstance |
|
1726 |
|
1727 tn SetFlagsL EDoNotCreate |
|
1728 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\imported.gif |
|
1729 tn GetThumbnailL |
|
1730 waittestclass tn |
|
1731 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
1732 tn DeleteThumbnails |
|
1733 tn DeleteSourceInstance |
|
1734 |
|
1735 tn SetFlagsL EDefaultFlags |
|
1736 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\video.3gp |
|
1737 tn DeleteThumbnails |
|
1738 tn ImportThumbnailL \data\ThumbnailManagerTest\imported.3gp |
|
1739 waittestclass tn |
|
1740 tn DeleteSourceInstance |
|
1741 |
|
1742 tn SetFlagsL EDoNotCreate |
|
1743 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\imported.3gp |
|
1744 tn GetThumbnailL |
|
1745 waittestclass tn |
|
1746 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
1747 tn DeleteThumbnails |
1888 tn DeleteThumbnails |
1748 tn DeleteSourceInstance |
1889 tn DeleteSourceInstance |
1749 |
1890 |
1750 tn DeleteInstance |
1891 tn DeleteInstance |
1751 delete tn |
1892 delete tn |
1799 tn DeleteInstance |
1940 tn DeleteInstance |
1800 delete tn |
1941 delete tn |
1801 pause KTestDelay |
1942 pause KTestDelay |
1802 [Endtest] |
1943 [Endtest] |
1803 |
1944 |
1804 // --------------------------------------------------------------------------- |
1945 |
1805 // Delete thumbnails by id |
1946 // --------------------------------------------------------------------------- |
1806 // --------------------------------------------------------------------------- |
1947 // Run multiple tests |
1807 [Test] |
1948 // --------------------------------------------------------------------------- |
1808 title Delete thumbnails by id |
1949 [Test] |
1809 create ThumbnailManagerTest tn |
1950 title Run misc multiple tests |
1810 tn CreateInstanceL |
1951 create ThumbnailManagerTest tn |
1811 tn SetDisplayModeL EColor16M |
1952 tn CreateInstanceL |
1812 |
1953 tn SetDisplayModeL EColor16M |
1813 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
1954 |
1814 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg 99999 |
1955 // using path |
1815 tn DeleteThumbnails |
1956 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg |
|
1957 tn DeleteThumbnails |
|
1958 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
1959 tn GetThumbnailL |
|
1960 waittestclass tn |
|
1961 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
1962 tn DeleteThumbnails |
|
1963 tn SetThumbnailEnumSizeL EImageFullScreenThumbnailSize |
|
1964 tn GetThumbnailL |
|
1965 waittestclass tn |
|
1966 tn CheckThumbnailCenrepL EImageFullScreenThumbnailSize EColor16M |
|
1967 tn DeleteThumbnails |
|
1968 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
1969 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
1970 tn GetThumbnailL |
|
1971 waittestclass tn |
|
1972 tn CheckThumbnailL KCustomSizeX KCustomSizeY EColor16M |
|
1973 tn DeleteThumbnails |
|
1974 tn DeleteSourceInstance |
|
1975 |
|
1976 // mp3 using handle |
|
1977 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\mp3.mp3 |
|
1978 tn DeleteThumbnails |
|
1979 tn SetThumbnailEnumSizeL EAudioGridThumbnailSize |
|
1980 tn GetThumbnailL |
|
1981 waittestclass tn |
|
1982 tn CheckThumbnailCenrepL EAudioGridThumbnailSize EColor16M |
|
1983 tn DeleteThumbnails |
|
1984 tn SetThumbnailEnumSizeL EAudioFullScreenThumbnailSize |
|
1985 tn GetThumbnailL |
|
1986 waittestclass tn |
|
1987 tn CheckThumbnailCenrepL EAudioFullScreenThumbnailSize EColor16M |
|
1988 tn DeleteThumbnails |
|
1989 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
1990 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
1991 tn GetThumbnailL |
|
1992 waittestclass tn |
|
1993 tn CheckThumbnailL KCustomSizeX KCustomSizeY EColor16M |
|
1994 tn DeleteThumbnails |
|
1995 tn DeleteSourceInstance |
|
1996 |
|
1997 // corrupted file |
|
1998 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
1999 tn SetThumbnailSizeL KCustomSizeX KCustomSizeY |
|
2000 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\not_jpg.jpg |
|
2001 tn GetThumbnailL |
|
2002 allownextresult KErrNotFound |
|
2003 waittestclass tn |
|
2004 tn DeleteSourceInstance |
|
2005 tn CreateSourceInstanceBufferL \data\ThumbnailManagerTest\not_jpg.jpg image/jpeg |
|
2006 tn GetThumbnailL |
|
2007 allownextresult KErrNotFound |
|
2008 waittestclass tn |
|
2009 tn DeleteSourceInstance |
|
2010 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\not_3gp.3gp |
|
2011 tn GetThumbnailL |
|
2012 allownextresult KErrNotSupported |
|
2013 waittestclass tn |
|
2014 tn DeleteSourceInstance |
|
2015 |
|
2016 // delete one thumbnail |
|
2017 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
2018 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg |
|
2019 tn DeleteThumbnails |
|
2020 tn GetThumbnailL |
|
2021 waittestclass tn |
|
2022 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
2023 tn DeleteThumbnails |
|
2024 pause KTenSecondDelay |
|
2025 tn SetFlagsL EDoNotCreate |
|
2026 tn GetThumbnailL |
|
2027 allownextresult KErrNotFound |
|
2028 waittestclass tn |
|
2029 |
|
2030 // delete all persistent thumbnails created |
|
2031 tn SetFlagsL EDefaultFlags |
1816 tn CreateThumbnails |
2032 tn CreateThumbnails |
1817 waittestclass tn |
2033 waittestclass tn |
1818 |
|
1819 pause KTenSecondDelay |
2034 pause KTenSecondDelay |
1820 |
2035 tn DeleteThumbnails |
|
2036 pause KTenSecondDelay |
1821 tn SetFlagsL EDoNotCreate |
2037 tn SetFlagsL EDoNotCreate |
1822 tn GetThumbnailByIdL 99999 |
2038 tn GetThumbnailL |
1823 waittestclass tn |
|
1824 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
1825 |
|
1826 tn DeleteThumbnailsByIdL 99999 |
|
1827 pause KOneSecondDelay |
|
1828 |
|
1829 tn GetThumbnailByIdL 99999 |
|
1830 allownextresult KErrNotFound |
2039 allownextresult KErrNotFound |
1831 waittestclass tn |
2040 waittestclass tn |
1832 |
2041 tn DeleteThumbnails |
1833 tn DeleteSourceInstance |
2042 tn DeleteSourceInstance |
1834 tn DeleteInstance |
|
1835 delete tn |
|
1836 pause KTestDelay |
|
1837 [Endtest] |
|
1838 |
|
1839 |
|
1840 // --------------------------------------------------------------------------- |
|
1841 // Update path |
|
1842 // --------------------------------------------------------------------------- |
|
1843 [Test] |
|
1844 title Update path |
|
1845 create ThumbnailManagerTest tn |
|
1846 tn CreateInstanceL |
|
1847 tn SetDisplayModeL EColor16M |
|
1848 |
|
1849 tn SetThumbnailEnumSizeL EImageGridThumbnailSize |
|
1850 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg 99999 |
|
1851 tn DeleteThumbnails |
|
1852 tn CreateThumbnails |
|
1853 waittestclass tn |
|
1854 tn DeleteSourceInstance |
|
1855 |
|
1856 pause KTenSecondDelay |
|
1857 |
|
1858 tn UpdatePathL 99999 \data\ThumbnailManagerTest\updated_path.bmp |
|
1859 |
|
1860 pause KTenSecondDelay |
|
1861 |
|
1862 tn SetFlagsL EDoNotCreate |
|
1863 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\RGB_VGA.jpg |
|
1864 tn GetThumbnailL |
|
1865 waittestclass tn |
|
1866 tn DeleteSourceInstance |
|
1867 |
|
1868 tn CreateSourceInstancePathL \data\ThumbnailManagerTest\updated_path.bmp 99999 |
|
1869 tn GetThumbnailByIdL 99999 |
|
1870 waittestclass tn |
|
1871 tn CheckThumbnailCenrepL EImageGridThumbnailSize EColor16M |
|
1872 tn DeleteSourceInstance |
|
1873 tn DeleteThumbnailsByIdL 99999 |
|
1874 |
2043 |
1875 tn DeleteInstance |
2044 tn DeleteInstance |
1876 delete tn |
2045 delete tn |
1877 pause KTestDelay |
2046 pause KTestDelay |
1878 [Endtest] |
2047 [Endtest] |
1951 // --------------------------------------------------------------------------- |
2120 // --------------------------------------------------------------------------- |
1952 // Priority handling |
2121 // Priority handling |
1953 // --------------------------------------------------------------------------- |
2122 // --------------------------------------------------------------------------- |
1954 [Test] |
2123 [Test] |
1955 title Priority handling |
2124 title Priority handling |
|
2125 create ThumbnailManagerTest tn |
|
2126 tn CreateInstanceL |
|
2127 tn SetDisplayModeL EColor16M |
|
2128 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
2129 |
|
2130 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
2131 tn DeleteThumbnails |
|
2132 tn DeleteSourceInstance |
|
2133 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
|
2134 tn DeleteThumbnails |
|
2135 tn DeleteSourceInstance |
|
2136 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
|
2137 tn DeleteThumbnails |
|
2138 tn DeleteSourceInstance |
|
2139 |
|
2140 // First request with 100 priority |
|
2141 tn SetThumbnailSizeL 80 40 |
|
2142 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
2143 tn GetThumbnailL 0 100 |
|
2144 tn DeleteSourceInstance |
|
2145 |
|
2146 // Second request with negative priority |
|
2147 tn SetThumbnailSizeL 1 1 |
|
2148 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
|
2149 tn GetThumbnailL 0 -100 |
|
2150 tn DeleteSourceInstance |
|
2151 |
|
2152 // Third request with positive priority |
|
2153 tn SetThumbnailSizeL 40 30 |
|
2154 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
|
2155 tn GetThumbnailL 0 0 |
|
2156 tn DeleteSourceInstance |
|
2157 |
|
2158 // First request should complete first, since the server started processing |
|
2159 // it before the other requests were done |
|
2160 waittestclass tn |
|
2161 tn CheckThumbnailL 80 40 EColor16M |
|
2162 |
|
2163 // The third request should finish next |
|
2164 waittestclass tn |
|
2165 tn CheckThumbnailL 40 30 EColor16M |
|
2166 |
|
2167 // The second request should finish last, since it had the lowest priority |
|
2168 waittestclass tn |
|
2169 tn CheckThumbnailL 1 1 EColor16M |
|
2170 |
|
2171 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
2172 tn DeleteThumbnails |
|
2173 tn DeleteSourceInstance |
|
2174 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
|
2175 tn DeleteThumbnails |
|
2176 tn DeleteSourceInstance |
|
2177 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
|
2178 tn DeleteThumbnails |
|
2179 tn DeleteSourceInstance |
|
2180 |
|
2181 tn DeleteInstance |
|
2182 delete tn |
|
2183 pause KTestDelay |
|
2184 [Endtest] |
|
2185 |
|
2186 // --------------------------------------------------------------------------- |
|
2187 // Change priority |
|
2188 // --------------------------------------------------------------------------- |
|
2189 [Test] |
|
2190 title Change priority |
1956 create ThumbnailManagerTest tn |
2191 create ThumbnailManagerTest tn |
1957 tn CreateInstanceL |
2192 tn CreateInstanceL |
1958 tn SetDisplayModeL EColor16M |
2193 tn SetDisplayModeL EColor16M |
1959 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
2194 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
1960 |
2195 |
1972 tn SetThumbnailSizeL 80 40 |
2207 tn SetThumbnailSizeL 80 40 |
1973 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
2208 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
1974 tn GetThumbnailL 0 0 |
2209 tn GetThumbnailL 0 0 |
1975 tn DeleteSourceInstance |
2210 tn DeleteSourceInstance |
1976 |
2211 |
1977 // Short delay to make sure the server starts processing this request |
|
1978 pause KClientServerDelay |
|
1979 |
|
1980 // Second request with negative priority |
2212 // Second request with negative priority |
1981 tn SetThumbnailSizeL 1 1 |
2213 tn SetThumbnailSizeL 1 1 |
1982 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
2214 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
1983 tn GetThumbnailL 0 -10 |
2215 tn GetThumbnailL 0 -50 |
1984 tn DeleteSourceInstance |
2216 tn DeleteSourceInstance |
1985 |
2217 |
1986 // Third request with positive priority |
2218 // Third request with positive priority |
1987 tn SetThumbnailSizeL 40 30 |
2219 tn SetThumbnailSizeL 40 30 |
1988 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
2220 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
1989 tn GetThumbnailL 0 10 |
2221 tn GetThumbnailL 0 50 |
1990 tn DeleteSourceInstance |
2222 tn DeleteSourceInstance |
|
2223 |
|
2224 // Change the priority of the third request to a low value |
|
2225 tn ChangePreviousPriority -100 |
1991 |
2226 |
1992 // First request should complete first, since the server started processing |
2227 // First request should complete first, since the server started processing |
1993 // it before the other requests were done |
2228 // it before the other requests were done |
1994 waittestclass tn |
2229 waittestclass tn |
1995 tn CheckThumbnailL 80 40 EColor16M |
2230 tn CheckThumbnailL 80 40 EColor16M |
1996 |
2231 |
1997 // The third request should finish next, since it had the highest priority of |
2232 // The second request should finish next |
1998 // the other tasks. |
|
1999 waittestclass tn |
|
2000 tn CheckThumbnailL 40 30 EColor16M |
|
2001 |
|
2002 // The second request should finish last, since it had the lowest priority |
|
2003 waittestclass tn |
|
2004 tn CheckThumbnailL 1 1 EColor16M |
|
2005 |
|
2006 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
2007 tn DeleteThumbnails |
|
2008 tn DeleteSourceInstance |
|
2009 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
|
2010 tn DeleteThumbnails |
|
2011 tn DeleteSourceInstance |
|
2012 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
|
2013 tn DeleteThumbnails |
|
2014 tn DeleteSourceInstance |
|
2015 |
|
2016 tn DeleteInstance |
|
2017 delete tn |
|
2018 pause KTestDelay |
|
2019 [Endtest] |
|
2020 |
|
2021 // --------------------------------------------------------------------------- |
|
2022 // Change priority |
|
2023 // --------------------------------------------------------------------------- |
|
2024 [Test] |
|
2025 title Change priority |
|
2026 create ThumbnailManagerTest tn |
|
2027 tn CreateInstanceL |
|
2028 tn SetDisplayModeL EColor16M |
|
2029 tn SetThumbnailEnumSizeL ECustomThumbnailSize |
|
2030 |
|
2031 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
2032 tn DeleteThumbnails |
|
2033 tn DeleteSourceInstance |
|
2034 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
|
2035 tn DeleteThumbnails |
|
2036 tn DeleteSourceInstance |
|
2037 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
|
2038 tn DeleteThumbnails |
|
2039 tn DeleteSourceInstance |
|
2040 |
|
2041 // First request with 0 priority |
|
2042 tn SetThumbnailSizeL 80 40 |
|
2043 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\WIDE_800x400.gif |
|
2044 tn GetThumbnailL 0 0 |
|
2045 tn DeleteSourceInstance |
|
2046 |
|
2047 // Short delay to make sure the server starts processing this request |
|
2048 pause KClientServerDelay |
|
2049 |
|
2050 // Second request with negative priority |
|
2051 tn SetThumbnailSizeL 1 1 |
|
2052 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\TALL_400x800.bmp |
|
2053 tn GetThumbnailL 0 -10 |
|
2054 tn DeleteSourceInstance |
|
2055 |
|
2056 // Third request with positive priority |
|
2057 tn SetThumbnailSizeL 40 30 |
|
2058 tn CreateSourceInstanceHandleL \data\ThumbnailManagerTest\SVG_640x480.svg |
|
2059 tn GetThumbnailL 0 10 |
|
2060 tn DeleteSourceInstance |
|
2061 |
|
2062 // Change the priority of the third request to a low value |
|
2063 tn ChangePreviousPriority -20 |
|
2064 |
|
2065 // First request should complete first, since the server started processing |
|
2066 // it before the other requests were done |
|
2067 waittestclass tn |
|
2068 tn CheckThumbnailL 80 40 EColor16M |
|
2069 |
|
2070 // The second request should finish next, since it had the highest priority of |
|
2071 // the other tasks. |
|
2072 waittestclass tn |
2233 waittestclass tn |
2073 tn CheckThumbnailL 1 1 EColor16M |
2234 tn CheckThumbnailL 1 1 EColor16M |
2074 |
2235 |
2075 // The third request should finish last, since the priority was changed to the |
2236 // The third request should finish last, since the priority was changed to the |
2076 // lowest value. |
2237 // lowest value. |