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

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

            DragAndDrop(startPt, endPt);

            // Apply triadicRectThree as Fill
            colorsLab.ClickTriadicRect(3);
            startPt = colorsLab.GetApplyFillButtonLocation();
            endPt   = colorsLab.GetMainColorRectangleLocation();
            PpOperations.SelectShape(TargetShape);
            DragAndDrop(startPt, endPt);

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

            Slide expSlide = PpOperations.SelectSlide(TriadicAndTetradicChangeSlideNo);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        private void TestBrightnessAndSaturationSlider(IColorsLabController colorsLab)
        {
            Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo);

            colorsLab.SlideBrightnessSlider(120);
            colorsLab.SlideSaturationSlider(240);

            Point startPt = colorsLab.GetApplyLineButtonLocation();
            Point endPt   = colorsLab.GetMainColorRectangleLocation();

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

            Slide expSlide = PpOperations.SelectSlide(BrightnessAndSaturationChangeSlideNo);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }