Beispiel #1
0
        public void PresAttSettingNew()
        {
            SvgStyleableElement elm = Util.GetXmlElement("<title />", "", "title") as SvgStyleableElement;

            Assert.IsNull(elm.GetPresentationAttribute("stroke"));

            elm.SetAttribute("stroke", "red");
            Assert.AreEqual(CssValue.GetCssValue("red", false).CssText, elm.GetPresentationAttribute("stroke").CssText);
        }
Beispiel #2
0
        public void PresAttUpdating()
        {
            SvgStyleableElement elm = Util.GetXmlElement("<title fill='black' />", "", "title") as SvgStyleableElement;

            Assert.AreEqual(CssValue.GetCssValue("black", false).CssText, elm.GetPresentationAttribute("fill").CssText);

            elm.SetAttribute("fill", "red");
            Assert.AreEqual(CssValue.GetCssValue("red", false).CssText, elm.GetPresentationAttribute("fill").CssText);
        }
Beispiel #3
0
        public void PresAttNonExisting()
        {
            SvgStyleableElement elm = Util.GetXmlElement("<title />", "", "title") as SvgStyleableElement;

            Assert.IsNull(elm.GetPresentationAttribute("dummy"));
        }