Ejemplo n.º 1
0
        private void TestMonochromeMatchingColors(IColorsLabController colorsLab)
        {
            Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo);

            // Apply monochromeRectOne as Line
            colorsLab.ClickMonochromeRect(1);
            Point startPt = colorsLab.GetApplyLineButtonLocation();
            Point endPt   = colorsLab.GetMainColorRectangleLocation();

            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

            // Apply monochromeRectTwo as Text
            colorsLab.ClickMonochromeRect(2);
            startPt = colorsLab.GetApplyTextButtonLocation();
            endPt   = colorsLab.GetMainColorRectangleLocation();
            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

            // Apply monochromeRectSix as Fill
            colorsLab.ClickMonochromeRect(6);
            startPt = colorsLab.GetApplyFillButtonLocation();
            endPt   = colorsLab.GetMainColorRectangleLocation();
            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

            Slide expSlide = PpOperations.SelectSlide(MonochromeColorChangeSlideNo);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }
Ejemplo n.º 2
0
        private void TestAnalogousAndComplementaryColors(IColorsLabController colorsLab)
        {
            Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo);

            // Eyedrop the font color shape
            Shape shape   = PpOperations.SelectShape(FontColorShape)[1];
            Point startPt = colorsLab.GetEyeDropperButtonLocation();
            Point endPt   = GetShapeCenterPoint(shape);

            DragAndDrop(startPt, endPt);

            // Apply analagousRectOne as Text
            colorsLab.ClickAnalogousRect(1);
            startPt = colorsLab.GetApplyTextButtonLocation();
            endPt   = colorsLab.GetMainColorRectangleLocation();
            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

            // Apply complementaryRectThree as Line
            colorsLab.ClickComplementaryRect(3);
            startPt = colorsLab.GetApplyLineButtonLocation();
            endPt   = colorsLab.GetMainColorRectangleLocation();
            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

            Slide expSlide = PpOperations.SelectSlide(AnalogousAndComplementaryChangeSlideNo);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }
Ejemplo n.º 3
0
        private void TestApplyFontColor(IColorsLabController colorsLab)
        {
            Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo);

            Shape shape   = PpOperations.SelectShape(FontColorShape)[1];
            Point startPt = colorsLab.GetApplyTextButtonLocation();
            Point endPt   = GetShapeCenterPoint(shape);

            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

            Slide expSlide = PpOperations.SelectSlide(FontColorChangeSlideNo);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }