コード例 #1
0
        private void TestApplyingColors(IColorsLabController colorsLab)
        {
            Slide actualSlide = PpOperations.SelectSlide(3);

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

            PpOperations.SelectShape("selectMe");

            Panel 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.GetFillColorButton(), dropletPanel);

            Slide expSlide = PpOperations.SelectSlide(4);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }
コード例 #2
0
        private void TestRecommendedColors(IColorsLabController colorsLab)
        {
            Slide actualSlide = PpOperations.SelectSlide(3);

            PpOperations.SelectShape("selectMe");

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

            Slide expSlide = PpOperations.SelectSlide(5);

            SlideUtil.IsSameLooking(expSlide, actualSlide);
        }