Ejemplo n.º 1
0
        private void TestApplyingColors(IColorsLabController colorsLab)
        {
            var actualSlide = PpOperations.SelectSlide(3);

            var fontColorShape = PpOperations.SelectShape("fontColor")[1];
            var lineColorShape = PpOperations.SelectShape("lineColor")[1];
            var fillColorShape = PpOperations.SelectShape("fillColor")[1];

            PpOperations.SelectShape("selectMe");

            var dropletPanel = colorsLab.GetDropletPanel();

            // get main color from fontColorShape
            // then apply main color to font color of target shape
            ApplyColor(dropletPanel, fontColorShape);
            ApplyColor(colorsLab.GetFontColorButton(), dropletPanel);

            // directly apply font color by fontColorShape's fill color
            ApplyColor(colorsLab.GetLineColorButton(), lineColorShape);

            // get main color from fillColorShape
            // then apply main color to fill color of target shape
            ApplyColor(dropletPanel, fillColorShape);
            ApplyColor(colorsLab.GetFillCollorButton(), dropletPanel);

            var expSlide = PpOperations.SelectSlide(4);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }
Ejemplo n.º 2
0
        private void TestRecommendedColors(IColorsLabController colorsLab)
        {
            var actualSlide = PpOperations.SelectSlide(3);

            PpOperations.SelectShape("selectMe");

            // mono panel7's color will become main color now
            Click(colorsLab.GetMonoPanel7());
            ApplyColor(colorsLab.GetFillCollorButton(), colorsLab.GetDropletPanel());

            var expSlide = PpOperations.SelectSlide(5);

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

            var fontColorShape = PpOperations.SelectShape("fontColor")[1];
            var lineColorShape = PpOperations.SelectShape("lineColor")[1];
            var fillColorShape = PpOperations.SelectShape("fillColor")[1];
            PpOperations.SelectShape("selectMe");

            var dropletPanel = colorsLab.GetDropletPanel();

            // get main color from fontColorShape
            // then apply main color to font color of target shape
            ApplyColor(dropletPanel, fontColorShape);
            ApplyColor(colorsLab.GetFontColorButton(), dropletPanel);

            // directly apply font color by fontColorShape's fill color
            ApplyColor(colorsLab.GetLineColorButton(), lineColorShape);

            // get main color from fillColorShape
            // then apply main color to fill color of target shape
            ApplyColor(dropletPanel, fillColorShape);
            ApplyColor(colorsLab.GetFillCollorButton(), dropletPanel);

            var expSlide = PpOperations.SelectSlide(4);
            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }
Ejemplo n.º 4
0
        private void TestRecommendedColors(IColorsLabController colorsLab)
        {
            var actualSlide = PpOperations.SelectSlide(3);
            PpOperations.SelectShape("selectMe");

            // mono panel7's color will become main color now
            Click(colorsLab.GetMonoPanel7());
            ApplyColor(colorsLab.GetFillCollorButton(), colorsLab.GetDropletPanel());

            var expSlide = PpOperations.SelectSlide(5);
            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }